|
| |
|
|
sljsh
Posts: 76 Joined: 1/30/2002 Status: offline
|
cellspacing css alternative - 9/10/2003 17:26:57
Hi. Is there a css alternative to the table element cellspacing?. Thanks, Lisa
< Message edited by sljsh -- 9/10/2003 5:29:18 PM >
|
|
|
|
cosegirl
Posts: 1 Joined: 1/7/2005 Status: offline
|
RE: cellspacing css alternative - 1/7/2005 16:15:29
1) Try this: [works in mozilla, ns6, ie6 ] /* Equivalent for cellspacing=0 */ table{ border-collapse: collapse; } /* Equivalent for cellspacing=5px */ /* Works in IE5+ */ -------------------- table{ border-collapse: collapse; border-width: 5px; } /* Works in NN */ -------------------- table{ border-collapse: collapse; border-spacing: 5px; } 2) Detail about border-collapse: http://www.blooberry.com/indexdot/css/properties/table/bcollapse.htm
|
|
|
|
d a v e
Posts: 4010 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: cellspacing css alternative - 1/7/2005 18:02:01
additionally... eric meyer says that because margins are not applied to table cells then you *can* use the css2 property border-spacing but support for this is pretty bad. he suggests leaving it in the html as a table attribute (i.e. <table cellspacing="0">)
_____________________________
David Prescott Gekko web design
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|