What if I wanted to add a line after each row in a table? I tried the <DIV> and it appears to work only before the table, not in the table. Is there another way to approach this? Thanks!
Why not just set the border of the table to 1. The you would see a line after each row. If you only wanted a line below each row and not lines separating the columns, you could try the following:
I agree that your solutions is OK if you only supports IE5 and NN6 (not tested by me) or higher. I think that it's even better/easyer if you want to specify the width in combination with a left/right-align:
Beware if you want your site to support people with older browsers. There are some disadvantages with bobbafet's solution:
In IE4
- You only see a grey line (OK, that's not to bad).
- {the <div> shows a colored line} but in NN4.7
- You see a 3 demension grey line following by (next row) a verry annoying square with thick RED border.
- {the <div> shows nothing}
Good luck with making a choice.
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (
Thanks for the tips but the code is on an internal intranet site and we only have users with IE5 or greater - no Netscape users. So I know that the code will be OK. Mighty
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.