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 7524069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:59:03+00:00 2026-05-30T02:59:03+00:00

pxI created a style defenition like this: #container { width: 900px; margin: 0 auto;

  • 0

pxI created a style defenition like this:

#container {
width: 900px;
margin: 0 auto;
background-image:url(images/back.JPG);
}
#header {
width: 900px;
height: 200px;
background-image:url(images/logo2.jpg);
border-bottom: 2px solid #000;
}
#leftnav {
float:left;
width: 150px;
height: 500px;
}
#rightnav {
float:right;
width: 150px;
height: 500px;
}
#body {
margin-left: 150px;
width: 600px;
text-align:center;
background-image:url(images/tb.png);
}
#footer {
clear:both;
background-image:url(images/tb.png);
}

Then I created a index file like that used the container around everything, then put the header, then leftnav, then rightnav, then body, then footer.

This works greate on Chrome and firefox, but on IE, the “BODY” container is not where it is supposed to be, it starts under the “leftnav” container. Is there a simple fix for this?

Updated cod from first answer, still same problem.

My index file is a php file.

  • 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-30T02:59:05+00:00Added an answer on May 30, 2026 at 2:59 am

    You don’t have units defined on #body‘s width. Should be width: 600px;
    Also, remove margin-left: 150;

    Try this. It works in IE7 for me. I think you were just missing a doctype.

    <!DOCTYPE html>
    
    <html>
    <head>
    <title>Test for StackOverflow</title>
    <style>
    #container {
        width: 900px;
        margin: 0 auto;
        background-image:url(http://www.uffdarc.com/cantonspeedway/images/back.JPG);
    }
    
    #header {
        width: 900px;
        height: 200px;
        background-image:url(http://www.uffdarc.com/cantonspeedway/images/logo2.jpg);
        border-bottom: 2px solid #000;
    }
    
    #leftnav {
        float:left;
        width: 150px;
        height: 500px;
    }
    
    #rightnav {
        float:right;
        width: 150px;
        height: 500px;
    }
    
    #body {
        margin-left: 150px;
        width: 600px;
        text-align:center;
        background-image:url(http://www.uffdarc.com/cantonspeedway/images/tb.png);
    }
    
    #footer {
        clear:both;
        background-image:url(http://www.uffdarc.com/cantonspeedway/images/tb.png);
    }
    </style>
    </head>
    
    <body>
    
    <div id="container">
    
    <div id="header">
    
    </div>
    <div id="leftnav"> 
      <img src="http://www.uffdarc.com/cantonspeedway/images/p1.jpg" width="140" height="140"><br>
      <br>
      <img src="http://www.uffdarc.com/cantonspeedway/images/p2.jpg" width="140" height="140"><br>
      <br>
      <img src="http://www.uffdarc.com/cantonspeedway/images/p6.jpg" width="140" height="80"><br>
    
    </div>
    <div id="rightnav"> 
      <img src="http://www.uffdarc.com/cantonspeedway/images/p3.jpg" width="140" height="80"><br>
      <br>
      <img src="http://www.uffdarc.com/cantonspeedway/images/p4.jpg" width="140" height="80"><br>
      <br>
      <img src="http://www.uffdarc.com/cantonspeedway/images/p5.jpg" width="140" height="80"><br>
    
    </div>
    <div id="body"> This Page is still under construction <br>
      <br>
      <img src="http://www.uffdarc.com/cantonspeedway/images/logo3.jpg" width="550" height="362"> <br>
      <br>
    </div>
    <div id="footer">
    
    </div>
    
    </div>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a image used for a LinearLayout background Let's say image has 20x100
i have installed lxml2.2.2 on windows platform(i m using python version 2.6.5).i tried this
I'm trying to do this (using lxml): //*[@id=32808345 or @id=33771423 or @id=15929470 or @id=33771117
I have this xpath pattern: tags = doc.xpath('/html/body//a[text() = ' + name.encode('utf8') + ']/@href'
The problem behind my question in the title is this: jQuery( document ).ready( function()
I am using lxml to scrape html. This code works. lxml.html.parse( http://google.com/ ) This
I want a view to return image data. so something along the lines of
I want to display a 139 cols * 121 rows image map. (The image
I'm trying to parse an xml file using lxml. xml.etree allowed me to simply
I'm working with an XML document where a tag must either have one set

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.