Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: IE Dark Magic

  1. #1
    Regular Coder
    Join Date
    Apr 2005
    San Diego, CA
    Thanked 0 Times in 0 Posts

    IE Dark Magic

    I'm about to split my head open in frustration from this. Anyone who can help will have my undying appreciation.

    On the website I'm designing, there are different headerpics for each page. So, I've made a headerpic div, and given a different class for each one. I should use an id, but that's beside the point.

    So in my CSS I define the width and height for the headerpics (since obviously they're all the same), and then for each class I define the unique URI of the picture. It's all dandy in Firefox, but in IE it only displays the first class in the CSS. It's bizarre. If I change the order of the classes in the CSS, then a different one displays. Right now .blog is the first class... If I make .releases the first class, then that will be the headerpic displayed.

    Does anyone understand this?


  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    In a place far, far away...
    Thanked 1,043 Times in 1,019 Posts
    I'm not sure if IE understands the attached class to the id. Why don't you just use an id? Its not like you have that class anywhere else on your page. Or even remove the #headerpic from #headerpic.blog etc.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts