Results 1 to 2 of 2

Thread: Div does not cover elements below in IE. Fine in firefox and chrome

  1. #1
    Join Date
    Jun 2012

    Div does not cover elements below in IE. Fine in firefox and chrome

    Hi everyone here at the forum

    I would please like to know why this works perfectly in Chrome and Firefox, but not in IE?


    The code is all contained in the html file, so you can please have a look at it.

    I want the div with bgcolor that is black to cover the image of the tree below while it loads, and resizes. In firefox and chrome it does this, but not in IE. In IE it strips away.

    Thanks in advance!

  2. #2
    Join Date
    Mar 2011
    You don't have a <!DOCTYPE> statement at the start of your document, so browsers (especially MSIE) render the page in "quirks mode". With a complete <!DOCTYPE> statement, browsers are set to "Standards Compliance Mode" in which they do their best to render the page according to the W3C Standards - which is what you want, even if it breaks your current design. Search on "doctype switch" and you'll find some good advice. Good luck!
    Rick Trethewey
    Rainbo Design

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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