Previous Message
Next Message

selector for missing attribute?

Sent by Jukka K. Korpela on 22 July 2007 08:08


On Sun, 22 Jul 2007, Joe Schmitt wrote:

> caption, th, td {
> text-align: left;
> }
>
> Now all browsers (including IE) will left align the "th" elements as the
> default.

They will, but this works all too well: align attributes in HTML markup 
will not override it. By the CSS cascade rules - and browsers follow them 
in this respect - presentational HTML attributes will be mapped 
(internally by a browser) to CSS rules that have the lowest possible 
specificity.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: