Previous Message
Next Message

tables and css

Sent by Philippe Wittenbergh on 9 September 2003 13:01


On Tuesday, September 9, 2003, at 03:09  AM, 
[EMAIL-REMOVED] wrote:

> As others have mentioned, col and colgroup styling currently doesn't 
> work
> in Gecko. Gecko does, however, understand sibling and child selectors. 
> For
> example, if you have a table with three columns -- one red, one green, 
> and
> one blue -- you can use something like the following:
>
>
[..... snip code ]
>
> IE and Opera will understand the column classes, while Gecko and Opera 
> will
> understand the sibling selectors. Between the two, you end up with the 
> same
> effect across all three browsers.
>
> The tr>td selector ensures that *only* browsers that understand parent
> selectors get this rule for td's in general. Since td colors take
> precedence in the table's presentation layering system, a rule that
> specifies td with a background color will override the background 
> colors
> defined at the column level. By including the child selector, browsers 
> that
> understand column selectors but not sibling or child selectors won't 
> try to
> interpret the td selectors.

a few more notes:
* Gecko browsers support some styling on <col>: the width property is 
supported (both % and px defined)
* IE 5 Mac and Webkit based browsers (Omniweb4.5, Safari) also supports 
some styling on  <col>: background, width.
Those also support child and sibling selectors, and :first-child (+ 
::last-child for Webkit). But Webkit has a problem with % defined width.

Philippe

== | == | == | == | == | == | == | == | == | == | == | ==

Philippe Wittenbergh

code | design | web projects : <http://www.l-c-n.com/>
online image gallery : <http://www.l-c-n.com/phiw/>
IE5 Mac bugs and oddities : <http://www.l-c-n.com/IE5tests/>

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: