ComicWisdom Posted November 4, 2006 Posted November 4, 2006 I am using images for my categories links. They work great except, I don't want them to go all the way across the page. I want them centered in the middle on two lines. On my template, I have put the $categories in a table set width = 520. Here is that code: (The font face and color are in there only so I can see the "$categorybox#" on my template because it has a black background) <div align="center"> <table border="0" width="520" id="table5" cellspacing="0" cellpadding="0"> <tr> <td> <p align="center"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"> $categorybox#</font></td> </tr> </table> </div> I have also removed the nowrap from catalog/includes/classes/boxes.php Here is that code: /*nowrap removed from line below*/ array('params' => 'height="14" class="infoBoxHeading" ', 'text' => $right_corner)); Sure enough, when I look at my source code that shows up on the page, the nowrap command is gone. But my 520 pixel table still spreads all the way across the screen instead of wrapping to a second row when the contents hit the 520 pixel mark. Here is the page URL: http://desk02.netkrafter.com/catalog/ Any suggestions of something I missed? Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!! Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience. The quickest way to learn is to forget to BACKUP!
deathgod Posted November 4, 2006 Posted November 4, 2006 If you are a bit savvy then just wrap the categories in a div, set your images to 100% and the set padding-right: 20px; for your div in the stylesheet. Sorry, maybe someone else can give you a clearer answer, but if you know your stuff then this should help Menou and unome
deathgod Posted November 4, 2006 Posted November 4, 2006 Sorry, ignore what i wrote. Completely misread your post Menou and unome
ComicWisdom Posted November 5, 2006 Author Posted November 5, 2006 Sorry, ignore what i wrote. Completely misread your post Thank you for trying. Maybe someone will come along with something else. It certainly has me perplexed as to way it refuses to wrap at the 520 pixel limit. I'm considering putting an if clause in to make it wrap at number 13, but I also want to use a rollover effect and I'm not quite sure that won't mess it up. Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!! Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience. The quickest way to learn is to forget to BACKUP!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.