Forum Moderators: not2easy

Message Too Old, No Replies

Coloured Borders in Netscape

         

Rahh

4:15 am on Feb 5, 2007 (gmt 0)

10+ Year Member



Can anyone please help...

I want a easy way to make coloured borders that are visible in Netscape and Opera. I have looked at many options... a lot of the code is too involved, and doesn't work, there must be an easy way.

I need all the cells to have the border not just the outside of the table. Thanks!

Robin_reala

7:58 am on Feb 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, rahh!

This shouldn’t be too hard to accomplish in Netscape and Opera as they understand CSS pretty well. Something like the following code should set you on the right path:

table {
border-collapse: collapse;
}

th, td {
border: 1px solid red;
}

border-collapse:collapse says that adjacent cells’ borders should collapse into one another; therefore if you set a 1px wide border on all of your cells you’ll end up with a 1px wide border between all of your cells.

[edited by: Robin_reala at 7:58 am (utc) on Feb. 5, 2007]

Rahh

10:42 pm on Feb 5, 2007 (gmt 0)

10+ Year Member




Great! That's very simple. Thank you very much for that!