Connecting Tech Pros Worldwide Help | Site Map

CSS - Table Gridlines

Seth Watson
Guest
 
Posts: n/a
#1: Nov 3 '08
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 **
Ben C
Guest
 
Posts: n/a
#2: Nov 3 '08

re: CSS - Table Gridlines


On 2008-11-03, Seth Watson <what43@yahoo.comwrote:
Quote:
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?
You put borders on td, and choose between border-collapse: collapse and
border-collapse: separate.
Jukka K. Korpela
Guest
 
Posts: n/a
#3: Nov 3 '08

re: CSS - Table Gridlines


Ben C wrote:
Quote:
Quote:
>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?
>
You put borders on td, and choose between border-collapse: collapse
and border-collapse: separate.
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/

Closed Thread