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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:42:48+00:00 2026-05-17T17:42:48+00:00

Got a newbie CSS question, just beginning to get into CSS so please bear

  • 0

Got a newbie CSS question, just beginning to get into CSS so please bear with me.
In my ASP.NET MVC app there’s a menu:

<div id="menucontainer">
    <ul id="menu">
        <li>something</li>
        <li>something</li>
        <li>something</li>
        <li>something</li>
        <li>something</li>
    </ul>
</div>

And CSS styles for it:

ul#menu
{
    border-bottom: 1px #5C87B2 solid;
    padding: 0 0 2px;
    position: relative;
    display: inline;
    margin: 0;
    width: 100%;
    text-align: left;
    list-style: none;
}

ul#menu li
{
    display: inline;
    position: relative;
    list-style: none;
}

#menucontainer
{
    margin-top: 40px;
    width: 100%;
}

How can I make some of the li elements align left and the rest of them right in a single line?
Tried to break it into two menus and write two different styles, just can’t seem to get the right css. Probably have to build a valid box model – any pointers on that?

  • 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-17T17:42:48+00:00Added an answer on May 17, 2026 at 5:42 pm

    You’ll need two <ul>s, one with float:left and the other with float:right. That should do it.

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

Sidebar

Related Questions

Im running into a small (newbie) problem. I've got 2 models: question & reviews.
Got a problem with ADOMD.NET 8.0, SQL2008 and our app. It isn't giving us
Silverlight newbie question: I've got a small Silverlight application with the following XAML snippet:
Newbie SQL question here --> I've got an Occurrences table that contains a row
I'm a newbie to CakePHP but got strange error. I'm just testing it, how
I am a newbie with Fluent NHibernate and have got a question that may
Yes, this might sound like a newbie question but there's a TWIST! ( And
I am building an app with ASP.NET MVC2, Fluent NHibernate, StructureMap, and PostgreSQL. I
I've got another newbie question. I've written a piece of code that converts a
Got a simple Newbie kind of a question. I would like to share an

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.