CSS - Table Gridlines

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I know if I do CSS border (like 1px black solid), can get a border around
the outside of an HTML table.

But, is there anyway to do this, so that all the gridlines that would
normally be visible if Border=1 in the table tag would be shown also?

** Posted from http://www.teranews.com **

Re: CSS - Table Gridlines

Quoted text here. Click to load it

You put borders on td, and choose between border-collapse: collapse and
border-collapse: separate.

Re: CSS - Table Gridlines

Ben C wrote:

Quoted text here. Click to load it

And you put borders on th and caption as well. And in future, you ask CSS
questions in c.i.w.a.stylesheets.

Yucca, http://www.cs.tut.fi/~jkorpela/

Site Timeline