Loading ...
Sorry, an error occurred while loading the content.

6912Re: [NH] CSS question

Expand Messages
  • Axel Berger
    Nov 13, 2010
    • 0 Attachment
      Mike Breiding - Morgantown WV wrote:
      > why there is a font difference

      Haven't found the time to look yet, sorry. Just a shot into the blue,
      that has thrown me before: The more specific declaration beats the more
      general one. Thus if you have:

      DIV.foo P{color: green;}
      P.bar{color: red}

      <DIV CLASS="foo"><P CLASS="bar">
      This text will be green although you expect red.
      </DIV></P>

      Took me ages to find the first time it happened to me. (Two elements are
      more specific than one.)

      Axel
    • Show all 10 messages in this topic