![]() |
Display boarder around product in products_t.tpl page
Hello, I have serached and searched and tried and tried and cannot seem to be able to do what I want. On my products_t.tpl page I have all the items individually wrapped with a boarder, however the whole row will of course show this boarder 3 times even when that particular row only has 1 or 2 items.
I have the boarder using a table around the whole template, this is the tag. Code:
<table width="100%" cellpadding="5" cellspacing="10" border="1"> So my question is, is there an if statement that I can use that will only use boarder="1" if that column actually has an item in it? Should I be doing this a different way than using the boarder tag? I hope this makes sense, here's a link to a page, you will see what I mean. http://www.yourelectronicsuperstore.com/home.php?cat=5 Any help would be appreciated! Thanks Rob |
Use a CSS border for the table cell itself instead of the whole table. THe way the default products_t.tpl is set up, there is a table cell for the product, and a table cell for the empty ones. Just add this to the one with the product:
style="border: 1px solid black;" |
Hey Padraic, thanks again for your help, I tried what you said and it works great, I just had to remove the style part, I guess you were thinking html as well, I used the style=boarder tag in the <tr> & <td> but it wouldn't call the boarder at all.
border: 1px solid black; Thanks for everything!! :D Rob |
All times are GMT -8. The time now is 04:36 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.