jsimon0201 Posted February 25, 2004 Share Posted February 25, 2004 Is there a way so that osCommerce will add extra spaces if a category name in the category box continues to a second line? I have a number of categories that are just too long to fit, and when they carry down to the second line that are all the way against the left border. Is there a way to align the second line with the first, so that they look better? Please :) Link to comment Share on other sites More sharing options...
1quicksi Posted February 25, 2004 Share Posted February 25, 2004 Search the contributions as there is a wrap around for the catagories that lines everything up nicely. knowledge base | Contributions | Search Link to comment Share on other sites More sharing options...
michael23 Posted March 2, 2004 Share Posted March 2, 2004 Hi John, there is no need for another contribution. For those who have worked with HTML in the old days (and not with Dreamweaver, Fusion or Frontpage), the problem is pretty simple. Edit catalog/includes/application_top.php Go to the line that says ('BOX_WIDTH', 125) or the number you have in there. Replace it with 0. This tells the box to be as small as possible. If you have only one word in yout caterory description, there should't be a problem. If you have more than one word, use instead of space. Don't use -, it will force a line break. This works perfect for me, my categories look like lined in a table structure. Let me know if this solved your problem. Greetings, Michael Not because it is difficult we don't dare to do it, but because we don't dare to do it, it is difficult. (Seneca) Link to comment Share on other sites More sharing options...
paulchan Posted June 2, 2011 Share Posted June 2, 2011 Hi John, there is no need for another contribution. For those who have worked with HTML in the old days (and not with Dreamweaver, Fusion or Frontpage), the problem is pretty simple. Edit catalog/includes/application_top.php Go to the line that says ('BOX_WIDTH', 125) or the number you have in there. Replace it with 0. This tells the box to be as small as possible. If you have only one word in yout caterory description, there should't be a problem. If you have more than one word, use instead of space. Don't use -, it will force a line break. This works perfect for me, my categories look like lined in a table structure. Let me know if this solved your problem. Greetings, Michael HI Michael, I got the same problem, but I can't find ('BOX_WIDTH', 125) or ('BOX_WIDTH', xxx) in catalog/includes/application_top.php My store oscommerce version 2.3.1, it may be difference structure with other version. Could I align it at the same vertical line with CSS ? something like " display " ? " display " or " css display inline-block " ? Thanks a lot for your big help! Best regards, Paul Chan Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.