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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:07:11+00:00 2026-06-01T00:07:11+00:00

I have built a nav where I have an unordered list made up of

  • 0

I have built a nav where I have an unordered list made up of a group of smaller unordered lists. These elements have been given the class “subnav”.

When viewing the nav on a smaller screen the navigation “collapses” and the menu’s pile on top of each other. What I’d like is for the navigation to keep it’s “integrity” without changing shape when the screen changes.

Here’s a jsfiddle: http://jsfiddle.net/Cyc4n/

If you adjust the size of the window within jsfiddle you can see the menu dancing around – how do I keep it still and intact?

Any direction greatly appreciated

  • 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-01T00:07:13+00:00Added an answer on June 1, 2026 at 12:07 am

    You could use display: table-cell; for .subnav and display: table; for their parent, .navigation (or better table-row for their parent and table for the parent of the latter, but it already works like that 😉 )
    Here is a fiddle: http://jsfiddle.net/Cyc4n/1/

    EDIT: in my example, I added table-layout: fixed and a large padding on right of logo. It’s there as examples if you want exact control on your items. Feel free to remove both if you want the browser to do its best at managing the width of items.

    You could also use CSS3 Flexible Box Layout but its support is worse than CSS2 display: table;! Though it should be OK if you specifically target “mobile” (narrow screens) with Media Queries: browsers supporting Media Queries should also support Flexbox (that’s Responsive Design with desktop first, not mobile first).
    EDIT2: support of display: table*; is IE8+. You already have the fallback for IE7- with inline-block 😉

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

Sidebar

Related Questions

Ok I have a inline list of buttons. <ul id=nav> <li class=home><a href=#>Menu Item</a></li>
I have built a number of asp.net servercontrols into a class library, & I
I have built a sidebar navigation that collapses & expands when the nav titles
I have been trying to build this nav for weeks now and something always
I have built a nav menu in wordpres using a posts GUID, and post
I have built a mega menu, where when you click on the nav link
I currently have a nav menu that is built with the following, <?php if(!is_user_logged_in())
I have built a simple transport agent (using .NET 4.0) for exchange 2010 and
I have built a php mail system. now I want to also send attachments
I have built an empty associative array whos keynames refer to submitted post data.

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.