CSS - Table Gridlines

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Seth Watson

    CSS - Table Gridlines

    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

    #2
    Re: CSS - Table Gridlines

    On 2008-11-03, Seth Watson <what43@yahoo.c omwrote:
    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.

    Comment

    • Jukka K. Korpela

      #3
      Re: CSS - Table Gridlines

      Ben C wrote:
      >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.stylesh eets.

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

      Comment

      Working...