Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS IE Cond. Statements not working

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #32703
    Brightonmike
    Member

    I can only test the site on one computer with IE7.

    I have this in the header:

    But IE is not removing the comments. Help? Site is: Site

    #76347
    TT_Mark
    Member

    Conditional stylesheets must come AFTER your standard stylesheets, otherwise everything will just get overwritten by the main styles :-)

    #76348
    Brightonmike
    Member

    I know, but regardless, IE is not stripping out the comments? So it’s not even trying to load the stylesheet.

    #76352
    TT_Mark
    Member

    Not sure what you mean? I.E. doesn’t remove the comment tags, they are there so other browsers ignore them

    #76354
    Brightonmike
    Member

    That doesn’t make sense. If it doesn’t strip the comment tags, then the link to the stylesheet is a comment and will be ignored. However which way it loads the stylesheet – it isn’t loading the stylesheet.

    #76355
    Brightonmike
    Member

    What makes this so much more frustrating is I make a change to the sites code, and it takes about half an hour for IE to show the change, doesn’t matter what I do, clear cache, browser data etc.

    #76335
    TT_Mark
    Member

    You could probably do with reading up on how IE Conditional comments actually work

    “Explorer Windows, though, has been programmed to recognize the special

    #76336
    Brightonmike
    Member

    Yeah, I get that.

    But like I said, regardless of how they work, IE7 is NOT actually applying the adjusted styles. I’ve over-ridden the defaults, but it won’t work. I’ve a feeling it’s an issue with the computer I’m using, changes seem to take years to show up on it.

    #76332
    TT_Mark
    Member

    Could be the hosting provider? Do all changes take a while to show or just those to the conditional stylesheet?

    #76333
    Brightonmike
    Member

    All other changes are instant and I can see the code changes instantly on browsers on this PC. It’s just the PC running IE7.

    #76324
    TheDoc
    Member

    I don’t see your stylesheet anywhere in your code on the home page.

    #76323
    TT_Mark
    Member

    I can vouch for it being there earlier when the conversation started. It has now disappeared

    #75995
    Brightonmike
    Member

    Eric – how do I do that? Is it really the best way?

    #75920
    Brightonmike
    Member

    Okay, that makes sense. So the header on IE7 is too short, I want to make it taller, but just for IE7.

    This will work?

    *+html #header {height:160px;}
    #75921
    Brightonmike
    Member

    It works – brilliant, thank you :)

Viewing 15 posts - 1 through 15 (of 15 total)
  • The forum ‘CSS’ is closed to new topics and replies.