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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:16:11+00:00 2026-06-07T12:16:11+00:00

I have a layout with a left vertical nav and a main content area.

  • 0

I have a layout with a left vertical nav and a main content area. The main content area has some info floated right, and its contents may be wider than the browser window. This works how I want with Firefox/Chrome/IE8, but with IE7, the wide content gets pushed down below the nav menu.

Problem demonstrated here: http://jsfiddle.net/UX2ac/

With the test page

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
.nav {
   float: left;
   width: 5em;
   background: lightgreen;
}
.content {
   background: lightyellow;
   margin-left: 5em;
}
.extraInfo {
   background: lightblue;
   float: right;
}
</style>
</head>
<body>
   <div class="nav">
      left<br/>
      nav<br/>
      menu<br/>
      items
   </div>
   <div class="content">
      <div class="extraInfo">
         Right info!
      </div>
      <p>Page Desc</p>
      <!-- <h3>Content</h3> -->
      <div style="white-space: nowrap">
         stuff stuff stuff stuff stuff stuff stuff stuff stuff 
      </div>
   </div>
</body>
</html>

This renders correctly in IE8 as:
enter image description here

But in IE7, it shows as:
IE7 broken

I know that I could get “side by side” divs to work with display: inline-block and white-space: nowrap in a parent, but then the content div’s width would expand to include the full size of its content, pushing the right extraInfo div off the screen. Same thing if I replaced nav & content with a 2-cell table.

How I can get IE7 to render this the same as everything else?

  • 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-06-07T12:16:13+00:00Added an answer on June 7, 2026 at 12:16 pm

    Add "display: inline-block;" to your content element’s style and it will force IE7 to render the same as other browsers.

    Here is an updated jsfiddle.

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

Sidebar

Related Questions

I have a two column site layout that has the content of the left
I have a 3 col layout (fixed center, var Left & Right side cols)
I have a CSS layout in which a content div has absolute positioning to
I have a two column layout: http://jsfiddle.net/KqQ42/1/ Now I would like that the left
I want to have a 2 column layout, and have the left column able
I have a layout where I have a ScrollView and some stuffs. It looks
I am trying to have an image be at the left, to the right
I have the following layout with a sidebar that is only present on some
I have a pretty simple layout - an image on the right with text
Currently I have tried aligning my Linear Layout to the left and center but

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.