SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    Feb 2009
    Posts
    1,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Header vanishes on IE7 and IE8 - why?

    By taking the following url into consideration, can anyone tell me why does the header element seems to disappear when viewing this in IE7 and IE8 ?

    http://help.nuvemk.com/testStructure/

    Thanks in advance.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,203
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Because there's no such element as <header>. Well, not as far as IE is concerned. Other browsers will accept an unknown element and make it display: inline (which is why you had to set it to display: block) but IE won't display an element is doesn't recognize.

    If if you must use code that doesn't exist yet (that is, HTML5), you need to create those elements first with JavaScript. There are JS libraries for this, such as Modernizr.

  3. #3
    SitePoint Wizard
    Join Date
    Feb 2009
    Posts
    1,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Without the body tag explicitly declared. IE 8 and older, will add <header> inside head.
    How did I forgot the body tag is yet to be discovered. :s

    thanks ralph.m. (only now I've seen your reply), yes I had a .js library there, and the appropriate display:block; declaration.

    All solved.

    Cheers,
    mem

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,367
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    It doesn't seem to vanish for me? It looks much the same as Firefox apart from the font sizes.

    Edit:


    Ah ok you must have just added that code to make it work

  5. #5
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,203
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Oops, missed that js link in there. Sorry for not seeing the real problem.


Bookmarks

Posting Permissions

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