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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:49:10+00:00 2026-05-23T10:49:10+00:00

I have a top nav area with two UL. One floated left, one floated

  • 0

I have a top nav area with two UL. One floated left, one floated right.

In IE7 the right floated UL seems to stretch all the way to the left taking up the entire space available. In IE8 and more current browsers, of course its fine… they only expand the width of the content in the LI.

example:

IE7

<---Floated left UL---><----------------------------Floated right UL--->

in IE8
<---Floated left UL--->                         <---Floated right UL--->

I have tried dabbling with min width, and width, but cant seem to get it right…
Is this just a default behavior for IE7 to take up the entire width, unless specified with a set width of pixels, or percent.

  • 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-23T10:49:10+00:00Added an answer on May 23, 2026 at 10:49 am

    Give the floated elements either a width (preferable) or display:inline.

    Style

    .nav {display:inline; background:#CCC;}
    ul.nav li {display:inline; margin:0 0.1em;}
    #nav1 {float:left;}
    #nav2 {float:right;}

    HTML

    <ul id="nav1" class="nav">
        <li>Lorem</li>
        <li>Ipsum</li>
        <li>Dolor</li>
    </ul>
    <ul id="nav2" class="nav">
        <li>Sit amet</li>
        <li>Consectetur</li>
        <li>Adipiscing</li>
    </ul>

    Obviously you’ll want to style the lists more; I provided some styling for context. BTW, IE doesn’t recognize min-width.

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

Sidebar

Related Questions

How would I have a top right corner div as shown in the image.
have a look at the top menu on these two pages on Firefox: http://outsidemma.com/2010/100031-bj-penn-the-prodigy-jay-dee.php
So I have this div called top nav, i.e.: <div id=topnav> And I would
I'm building a SL4 app. I have two controls, a top search bar and
I seem to be having two problems: My top nav bar links don't work
I'm trying to create a page setup with two navigation areas (top and left)
I'm new to css, I have a top nav but I couldn't set its
I have the following page I'm working on: http://jeunespoir.org/demo/ . The top nav menu
How can I have just the top corners rounded for a WPF rectangle? I
So I have a page like this you look at. On top I have

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.