Closed Bug 172380 Opened 22 years ago Closed 22 years ago

cellspacing not working with rules="none"

Categories

(Core :: Layout: Tables, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: i.dunn, Assigned: karnaze)

Details

using javascript to set the table cell colours, cellspacing does not work. (The cell colour would be defined by a function, not as shown below, but this illustrates the problem!). code snippet below: <TABLE CELLSPACING="5" CELLPADDING="5" BORDER="0" RULES="none"> <TR> <SCRIPT LANGUAGE="javascript" TYPE="text/javascript"> document.write("<TD bgcolor='#aaaaaa'>"); </SCRIPT> .... next cell </TR> </TABLE> cellpadding is OK, but not cellspacing! thanks
Nothing to do with JS. Everything to do with rules="none". Cellspacing is the distance between cell borders. Not sure what should happen to it if you suppress all cell borders...
Summary: cellspacing not working with javascript → cellspacing not working with rules="none"
specifing rules invokes the collapsed border mechanism which does exclude cellspacing.
well, then.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.