Connecting Tech Pros Worldwide Help | Site Map

CSS - Table Gridlines

  #1  
Old November 3rd, 2008, 04:05 AM
Seth Watson
Guest
 
Posts: n/a
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 **
  #2  
Old November 3rd, 2008, 09:05 AM
Ben C
Guest
 
Posts: n/a

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.
  #3  
Old November 3rd, 2008, 05:35 PM
Jukka K. Korpela
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS for GridView in a asp:UpdatePanel John J. Hughes II answers 1 October 21st, 2007 06:15 PM
CSS equivalent for cellpadding in a datagrid ? vivekian answers 3 August 1st, 2006 01:15 AM
Horizontal Gridlines not showing up Matt answers 2 April 23rd, 2006 11:25 PM
Datagrid & CSS Wasco answers 0 February 22nd, 2006 12:55 PM
Include gridlines when printing John 3:16 answers 2 December 12th, 2005 06:15 PM