Chimpie Posted October 3, 2009 Share Posted October 3, 2009 I would like to add two line breaks/spaces between these two rows. I tried putting in two <br /> tags but it causes HTML errors. How should I code it? <table><tr><td><a href="http://www.link.com/" target="_blank"><img src="/files/image.png" alt="TITLE" title="TITLE" border="0" /></a></td><td>Description of site.</td></tr><tr><td><a href="http://www.link.com/" target="_blank"><img src="/files/image.png" alt="TITLE" title="TITLE" border="0" /></a></td><td>Description of site.</td></tr></table> Link to comment Share on other sites More sharing options...
jeffman Posted October 3, 2009 Share Posted October 3, 2009 The space between table rows doesn't exist, so nothing can go there.The <br> element is not what you want at all. It seems that you're using the table as a layout crutch. Very 1990s. CSS is the modern answer.If you don't want to learn a bunch of new stuff (you can hang onto the table if you want) you still need to learn a little CSS. Depending on the kind of space you want, use these CSS properties: border-collapse, border-spacing, and maybe even padding. Part of it depends on whether you want the borders visible or not.http://www.w3schools.com/css/pr_tab_border-collapse.asphttp://www.w3schools.com/css/pr_tab_border-spacing.asphttp://www.w3schools.com/css/pr_padding.asphttp://www.w3schools.com/css/pr_border.asp Link to comment Share on other sites More sharing options...
Chimpie Posted October 3, 2009 Author Share Posted October 3, 2009 Thanks for the response.The code is going into a module in a vBa CMPS module in a vBulletin forum.If you have the time, may I ask how you would code this? Link to comment Share on other sites More sharing options...
Chimpie Posted October 4, 2009 Author Share Posted October 4, 2009 http://www.w3schools.com/css/pr_padding.aspThis method worked for me. After a little tweaking here and there the module looks exactly like I want it and remains XHTML 1.0 Transitional.This was also my first CSS edit. w00t!Thanks for the help. Link to comment Share on other sites More sharing options...
jeffman Posted October 4, 2009 Share Posted October 4, 2009 Good deal. But do start experimenting with CSS layout instead of table layout. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.