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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:52:46+00:00 2026-06-18T03:52:46+00:00

i am creating a horizontal navigation bar that gets its menu items dynamically. however

  • 0

i am creating a horizontal navigation bar that gets its menu items dynamically. however i am having a problem in showing the list items horizontally. Whenever the list items overflows the width of the list container, they create a new row inside the container. I want to have all the list items appear in a single row always. and no matter how long the list may be the user will scroll the menu only horizonatlly

i have used styling for the ul

ul{ 
    background-color:yellow;
   position:absolute;
    height:80px;
overflow:auto;
    list-style:none;
    display:table-row;
}

and for the li

li{
    margin:10px;
    display:inline-block;
}

Demo Fiddle

  • 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-18T03:52:47+00:00Added an answer on June 18, 2026 at 3:52 am
    ul{ 
        background-color:yellow;
        height:80px;
        overflow-x: auto;
        overflow-y: hidden;
        list-style:none;
        white-space: nowrap;
    }
    

    Demo

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

Sidebar

Related Questions

I'm creating a horizontal navigation bar. Here's its CSS: #topnav { clear: both; overflow:
I'm having trouble creating a horizontal navigation. My problem is when I want to
I'm creating a horizontal menu bar. There is an outer div that contains inner
I am creating a horizontal menu bar with a series of links. Underneath the
Hello all I am creating a horizontal menu for a site that needs to
I had this idea for a website of creating a fixed horizontal navigation bar
I'm creating a horizontal ul navigation bar. Each li item is a different width.
I've problem when creating a Horizontal Listview inside list view.. myAdapter adapter = new
While creating my horizontal menu using the <ul><li>....</li></ul> I came across a few behaviors
I'm creating a dynamically generated PDF using FPDF. My PDF requires many exactly horizontal/vertical

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.