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

  • Home
  • SEARCH
  • 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 144191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:12:52+00:00 2026-05-11T08:12:52+00:00

Here is an outline of a page I’m developing. <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE html

  • 0

Here is an outline of a page I’m developing.

<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html      PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'     'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>   <head>     <link rel='stylesheet' href='../css/test.css' />     <title>Prosperity Login</title>   </head>   <body>     <div id='banner'>     </div>     <div id='subbanner'>     </div>     <div id='body'>       <div id='colA'>       </div>       <div id='colB'>         <div id='B1'>         </div>         <div id='B2'>         </div>       </div>       <div id='colC'>       </div>       <div id='colD'>       </div>     </div>     <div id='footer'>     </div>   </body> </html>  

And the CSS:

* {   margin: 0px;   padding: 0px; }    div {   border: 1px dotted; }  #banner {   height: 70px;   width: 100%; }  #subbanner {   height: 30px;   width: 100%; }  #body {   background-color: #CCFFCC;   width: 80%; }  #colA{   float: left;   height: 120px;   width: 24%; }  #colB{   float: left;   height: 80px;   width: 24%; } #colC{   float: left;   height: 120px;   width: 24%; } #colD{   float: left;   height: 120px;   width: 24%; }  #B1{   float: right;   height: 48px;   width: 80%; }  #B2{   float: right;   height: 28px;   width: 80%; } #footer{   height: 30px;   width: 100%; } 

In Firefox 3, the body div (with a green background) is squished to almost nothing while IE7 renders the page perfectly. From what I can tell of the CSS 2.1 standard (via Meyer’s O’Reilly book), floated divs should float within their container block which is clearly not the case in Firefox 3.

So if Firefox’s rendering is compliant, what am I missing?

  • 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. 2026-05-11T08:12:53+00:00Added an answer on May 11, 2026 at 8:12 am

    Your problem is that IE7 clears the parent element so that it contains the floating child. This is not how it should be rendered. Better explanations by other posters.

    Simple fix: apply overflow: hidden; to your #body:

    #body {     overflow: hidden; } 

    See this post for an explanation.

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

Sidebar

Ask A Question

Stats

  • Questions 146k
  • Answers 146k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer grammar hasn't changed, some modules have. May 12, 2026 at 8:56 am
  • Editorial Team
    Editorial Team added an answer Ajax requests are executed asynchronously, the callback function (function (data))… May 12, 2026 at 8:56 am
  • Editorial Team
    Editorial Team added an answer You must fetch the managed objects and then send -deleteObject:… May 12, 2026 at 8:56 am

Related Questions

Here is an outline of a page I'm developing. <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE html
I want to convert TIF to an image type that is viewable in a
I'm trying to embed a window from my process into the window of an
Background: Recently while looking at a structured text editor I noticed they used a
I am working on an application that will have online and offline components and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.