- assigned_to: nobody --> fredck
- status: open --> open-fixed
Currently the TH of tables without borders doesn't get
a border, and in Gecko a table without specifying
border="0" doesn't get the styles.
To fix this, just change in css\fck_internal.css from
TABLE.FCK__ShowTableBorders, TABLE.FCK__ShowTableBorders TD
{
border: #d3d3d3 1px solid ;
}
to
TABLE.FCK__ShowTableBorders,
TABLE.FCK__ShowTableBorders TD,
TABLE.FCK__ShowTableBorders TH
{
border: 1px solid #d3d3d3;
}
that will fix the TH problem in IE.
To fix it in gecko change
css\fck_showtableborders_gecko.css like this:
TABLE[border="0"], TABLE[border="0"] TD,
TABLE[border="0"] TH,
TABLE:not([border]), TABLE:not([border]) TD,
TABLE:not([border]) TH
{
border: 1px solid #d3d3d3;
}
another change it would be to change the solid
definition to dotted, that way I think it's clearer
that it's a ghost border and not a real one.
(border: 1px dotted #d3d3d3;)
Regards
Logged In: YES
user_id=572424
Actually for Firefox you will have perfect results with
this:
TABLE[border="0"],
TABLE[border="0"] > TR > TD, TABLE[border="0"] > TR > TH,
TABLE[border="0"] > TBODY > TR > TD, TABLE[border="0"] >
TBODY > TR > TH,
TABLE[border="0"] > THEAD > TR > TD, TABLE[border="0"] >
THEAD > TR > TH,
TABLE[border="0"] > TFOOT > TR > TD, TABLE[border="0"] >
TFOOT > TR > TH,
TABLE:not([border]),
TABLE:not([border]) > TR > TD, TABLE:not([border]) > TR >
TH,
TABLE:not([border]) > TBODY > TR > TD, TABLE:not([border])
> TBODY > TR > TH,
TABLE:not([border]) > THEAD > TR > TD, TABLE:not([border])
> THEAD > TR > TH,
TABLE:not([border]) > TFOOT > TR > TD, TABLE:not([border])
> TFOOT > TR > TH
{
border: #d3d3d3 1px dotted ;
}
Logged In: YES
user_id=1356422
Right, I didn't though about nesting tables.
It could also be rewritten as
TABLE[border="0"],
TABLE[border="0"]>*>TR>*,
TABLE:not([border]),
TABLE:not([border])>*>TR>*
{
border: 1px dotted #d3d3d3;
}
given the restrictions about the structure of tables both
set of rules should be equivalent, it would be interesting
to know which one is better for the browser (in terms of
speed), but I think that it could only be answered by an expert
Log in to post a comment.