Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 590187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:30:08+00:00 2026-05-13T15:30:08+00:00

So I was expecting problems getting my site design working on IE, but not

  • 0

So I was expecting problems getting my site design working on IE, but not FF. However after some investigation I’ve narrowed it down to this simple test case.

<head>
<meta http-equiv="Content-Language" content="en-gb" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Test</title>
</head>

<body bgcolor="#ff0000" style="margin:0px">

<div style="position: absolute; width: 50%; height: 100%; top: 0%; left: 0%; z-index:-1;background-color: 96C3FF"></div>
<div style="position: absolute; width: 50%; height: 100%; top: 0%; left: 50%; z-index:-1;background-color: BEC0C2"></div>

<div style="border:solid 10px black; height:50%; width:50%"></div>

</body>
</html>

In Chrome it’s fine, and the margin change on body makes it look identical in IE8. But in FF3 the two divs are not shown, just the black rectangle on a red background.

If I remove the z-order thing, the 100% height divs appear in FF but on top of the black div.

Why? The reason I want to do this is not obvious in this stripped example, but how can I make it work?

EDIT: I have no doc-type. Copy-paste to a file exactly. I guess this is one of the other problems. The background is the important part, the 3rd div is just to have something else drawn. In IE8/Chrome you see a grey/blue background, in FF3 just a red background.

What would be a fixed solution, including meta/doc-type fixes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:30:08+00:00Added an answer on May 13, 2026 at 3:30 pm

    First, were you using a DOCTYPE flag when you test this? You should add whatever DOCTYPE your site is using to get useful results. Add the DOCTYPE and IE will start to act like Firefox (assuming you use the right doc type).

    One thing thats difference is not due to z-index… The browsers are giving your bordered box a different height. Put something in it, or set its height to a non-relative value and they will start to look the same (given the doc type I have).

    I added the DTD XHTML 1.0 Transitional doctype for my tests.

    I think Firefox is behaving correctly. The elements with -1 z-index don’t show because they’re within the body tag. Also, since your body tag doesn’t have a height set, setting a relative height on the contained elements is kind of meaningless. Set a fixed height on the body tag, or set the html and body tag to have 100% height.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having this problem with the grails liferay-plugin: localhost_liferay_portlet_WEB_INF_grails_app_views_test_view_gsp: 17: expecting anything but ''\n'';
I'm getting some weird behavior in asp.net MVC2 (at least it's not what I'm
I am getting started with backbone.js but it seems i am not able to
I'm getting an anonymous class at compile-time that I'm not expecting. Relevant code follows,
I'm having some problems posting JSON data to my rails controller and getting the
I am having problems getting my app to restore/load from start after tombstoning. It
I am having problems executing a AlertDialog on a postexecute(). Throws this exception Caused
I have some timeout problems when executing a SELECT query. It is SQL Server
I'm having troubles getting this to work. Basically I have a python program that
I'm trying to get my ad hoc build distributed but have started experiencing problems.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.