Assigning property values question (possible Amay bug)


The following html and css code:
    <p class="blue red">Hello</p>
    <p class="red blue">Hello</p> { color: blue; }  { color: red; }
is not displayed in Amaya as in Mozilla or Internet Explorer.
Amaya displaies the first paragraph in red and the second one in blue.
Mozilla and IE display both paragraphs in red.

If the css rules order is changed:  { color: red; } { color: blue; }
Amaya does not change colors, but Mozilla and IE display both 
paragraphs in blue.

Which order is most important? Class names order in html attribute or
class rules order in css file?

Best regards,

Received on Friday, 24 October 2003 05:13:22 UTC