John D wrote:
The priority order of styles is as follows:
1.Browser default
2.External style sheet
3.Internal styles via <style> </style>
4.Inline styles <<table style="border:3px; text-align:center"></table>
There is no such priority order. The cascading order is much more complex
and almost always misunderstood, more or less:
http://www.w3.org/TR/CSS21/cascade.html#cascading-order
Therefore, your style within <style> </style> No 4 will take priority
over external style sheet called by the link tag.
You mean No 3, right? But it's still wrong. Other things being equal (and
they usually aren't!), the order of specifying CSS rules becomes relevant,
but the order depends on the order of <style> and <link> elements, not on
the element type.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/