Jump to content

Proper Way To Code Two Line Breaks


Chimpie
 Share

Recommended Posts

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

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

Edited by Deirdre's Dad
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...