HighDots Forums  

Re: Borders For Tables Hack

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Re: Borders For Tables Hack in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Philipp Lenssen
 
Posts: n/a

Default Re: Borders For Tables Hack - 09-02-2003 , 03:29 AM






Hostile17 wrote:

Quote:
I've been trying to figure out a good way to make a CSS layout with
nice-looking 1-pixel borders around the table cells.

The only broadly compatible way to do this I know of is to have

* the border of the table set to zero
* the cellspacing of the table set to one
* the background color set to black
* the table cell background color set to white

How about:

table { border-collapse: collapse; }
th, td { border: 1px solid black; }

Quote:
However in Netscape four
Hmm, did you say Netscape 4... that's no fun.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.