By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,340 Members | 1,715 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,340 IT Pros & Developers. It's quick & easy.

how to have a color border between the rows of a table

P: 1
hi,
i have table inside a div. This table does not have any border.
now i want a line to be appeared between the rows of the table
and be able to show/hide the second row of a table clicking on a button!!!!!!!!!

Any Help is very much appreciated

Thanks..
Sep 14 '08 #1
Share this Question
Share on Google+
2 Replies


Atli
Expert 5K+
P: 5,058
You could always just add a empty row between the other two rows. A row that spans across all the columns, is 1px hight and has a red border. That should create a red line between the rows.

You will have to use JavaScript to hide the second row when you click the button. You could have it set the "display" style to "none".
Sep 14 '08 #2

acoder
Expert Mod 15k+
P: 16,027
Alternatively, you could use the rules attribute (set to "rows"). I'm not sure if it's supported by all browsers though.
Sep 14 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.