Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthordhjapan
    • CommentTimeJul 2nd 2006
     permalink
    Hello,
    based on this article : http://www.w3.org/TR/CSS21/selector.html#class-html , I made this :
    div { height: 100px; width: 100px; margin: 10px 0;}
    div.blue_bg { background: #00f;}
    div.green_bg { background: #0f0;}
    div.blue_bg.green_bg { background: #ff0;}/*yellow*/

    and <div class="blue_bg">
    <p> </p>
    </div>
    <div class="green_bg">
    <p> </p>
    </div>
    <div class="blue_bg green_bg">
    <p> </p>
    </div>
    ... But IE seems to bug on this.
    Any one already had to deal with that.

    Thanks a lot.
  1.  permalink
    Can you describe the bug in more detail, or link to an example?

    Did you zero out your margins & padding at the beginning of your style sheet e.g.


    * {
    margin: 0;
    padding: 0;
    }
    •  
      CommentAuthornifkin
    • CommentTimeJul 2nd 2006
     permalink
    IE (at least pre 7b2, and I'm too lazy to try checking there right now) doesn't support .something.somethingelse selectors as far as I'm aware.
    • CommentAuthordhjapan
    • CommentTimeJul 3rd 2006
     permalink
    Thanks a lot, that what I figured .. dam that was unexpected.
Add your comments
    Username Password
  • Format comments as (Help)