On Aug 13, 2004, at 3:31 pm, scott parsons wrote:

you can but only in IE due to IE having some weirdness occuring in the way they layout the page.
BUT
if you style the columns using the IE method, and style the third td (td+td+td etc) which will be understood by most modern browsers you should be able to get the column styled for everybody.


perhaps not the best way to go about things but it will work

You can apply a background-colour via the <col> element in *all* modern browsers [1]. Mozilla (prior to 1.7) and Firefox (pre 0.9) didn't support this due to inconsistencies in the css2 specs. The discussion has been settled/clarified with the release of CSS2.1 CR, and it is now implemented in Firefox0.9+ and Mozilla 1.7+.
(I don't have the bugzilla number handy on this, sorry).
<http://www.w3.org/TR/CSS21/tables.html#q4>


On a side note, if a table contains more than 3 columns, then the syntax td+td+td will give a background colour to more than one column. You'd need to add td+td+td+td to override the previous one.


[1] Safari, Omniweb5, Opera7.x, IE Mac.... and Gecko based browsers now. ---/--- Philippe Wittenbergh now live : <http://emps.l-c-n.com/> code | design | web projects : <http://www.l-c-n.com/> IE5 Mac bugs and oddities : <http://www.l-c-n.com/IE5tests/>

******************************************************
The discussion list for  http://webstandardsgroup.org/

Proud presenters of Web Essentials 04 http://we04.com/
Web standards, accessibility, inspiration, knowledge
To be held in Sydney, September 30 and October 1, 2004

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to