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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:25:47+00:00 2026-05-21T05:25:47+00:00

I would like all my LI’s to display on the same line, so I

  • 0

I would like all my LI’s to display on the same line, so I set each LI’s display property to inline-block and set white-space = nowrap on the parent UL. I get the expected non-wrapping behaviour in FireFox and Chrome, but IE8 ignores the nowrap and displays the items on underneath the other.

Any idea what I am doing wrong?

Here is the HTML and CSS…

<html>
    <head>
        <style type="text/css"> 
            li
            {
                display: inline-block;
                list-style: none outside none;
                padding: 0px 10px 0px 10px;
                white-space: nowrap;
            }
            ul
            {
                white-space: nowrap;
            }
        </style>
    </head>
    <body>
        <div style="float: left; width: 300px;">
            <ul>
                <li>
                    Menu 1
                </li>
                <li>
                    Menu Menu Menu 2
                </li>
                <li>
                    Menu 3
                </li>
                <li>
                    Menu 4
                </li>
            </ul>
        </div>
    </body>
</html>
  • 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-21T05:25:48+00:00Added an answer on May 21, 2026 at 5:25 am

    If you want your elements to display one next to the other, try removing the -block of your display property.

    Set it as follow :

    display: inline;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have all developers on my team to use the same
We would like to enumerate all strings in a resource file in .NET (resx
I would like to find all the rows in a table and match on
I would like to get all the instances of an object of a certain
As much as we would all like to say it is a benefit to
I am using FxCop and I would like to find all the methods or
I have a tab navigator control and I would like to make all of
I have a DATETIME field. I would like to select all the records that
I have two tables A and B. I would like to delete all the
I would like to wipe out all data for a specific kind in Google

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.