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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:00:21+00:00 2026-05-24T13:00:21+00:00

I am working on a site. And have some menu. But i have a

  • 0

I am working on a site. And have some menu.
But i have a problem to put the information on the right way on my screen.

I have a navigation wrapper with a width: 970px.
In that wrapper i have 4 different zone’s

  • Navigation
  • Language switcher
  • Style switcher
  • Search box

I can give the 4 last items a fixed width and float it to the right.
So i can give the navigation some fixed width.

But then i have a problem.
In the navigation div. You have the structure of every menu.
Like

<ul id="mainMenu">
  <li class="level1">
    <ul> 
       ... Subitems ...
    </ul>
    <a>Item 1</a>
  </li>
  <li class="level1">
    <ul> 
       ... Subitems ...
    </ul>
    <a>Item2 that is longer</a>
  </li>
</ul>

On the following screen you see what i mean.
The first 4 items are the navigation.

There i need to split, all the menu items over the
width that is over.
As you see, it’s split in 4 pieces. Each li have a border.
And the text should be in the middle of each li.
But how can i devide it depending on the text that we use.

http://prntscr.com/27j2q

  • 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-24T13:00:21+00:00Added an answer on May 24, 2026 at 1:00 pm

    I have solved the problem.

    I used the padding properties. Because i know the items that come in the menu.
    Normaly they don’t change. So i could do it this way.
    It should be better with some dynamic things.
    But now it’s also solved.

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

Sidebar

Related Questions

I have to make some mods to an existing (and working) magento site. So
I have a site setup that is working fine in ie8 and firefox but
I am currently working on a Wordpress site I have created some custom Post
i have been working on a new .net MVC site and have integrated some
I'm working on a site and I have some problems that I hope you
Basically the way my site is layed out, I have some elements that have
I have a wordpress site where I editing some page, but I notice that
My site I have some content can be voted (+/-). It is working fine
i am working on a joomla site and i have a problem. Problem I
I have been working with Xcode 4.2.1, but following some tutorials and videos from

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.