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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:51:34+00:00 2026-06-07T11:51:34+00:00

I just test a ASP.MVC 2 project. Please see the image. The relevant CSS:

  • 0

I just test a ASP.MVC 2 project. Please see the image.
image

The relevant CSS:

/* TAB MENU   
----------------------------------------------------------*/
ul#menu
{
    border-bottom: 1px #5C87B2 solid;
    padding: 0 0 2px;

    margin: 0;
    text-align: right;
}

ul#menu li
{

   list-style: none;

 }

 ul#menu li a
{
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    line-height: 2.8em;
    background-color: #e8eef4;
    color: #034af3;
}

 ul#menu li a:hover
 {
    background-color: #fff;
    text-decoration: none;
  }

  ul#menu li a:active
  {
    background-color: #a6e2a6;
    text-decoration: none;
  }

  ul#menu li.selected a
  {
     background-color: #fff;
    color: #000;
   }

I want to convert it from horizonal to vertically, what I tried was to remove each block and test but no lucky.

The html:

<body>
<div class="page">

    <div id="header">


        <div id="logindisplay">
            <% Html.RenderPartial("LogOnUserControl"); %>
        </div> 

        <div id="menucontainer">

            <ul id="menu">              
                <li><%: Html.ActionLink("Home", "Index", "Home")%></li>
                <li><%: Html.ActionLink("About", "About", "Home")%></li>
            </ul>
         <div id="title">
            <h1>WSTEST</h1>
        </div>
        </div>
    </div>

    <div id="main">
        <asp:ContentPlaceHolder ID="MainContent" runat="server" />

        <div id="footer">
        </div>
    </div>
</div>

Thanks.

  • 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-07T11:51:35+00:00Added an answer on June 7, 2026 at 11:51 am

    Try this:

    ul#menu li {
        display: block;
        list-style: none;
    }
    

    Originally is display: inline, change it to display: block; and it should work

    Hope it helps!

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

Sidebar

Related Questions

I just started a new project, and now with ASP.NET MVC being designed in
I am completely new to ASP.Net MVC. I just created an MVC3 project in
I have an asp.net MVC project hosting a silverlight application. I just started rebuilding
I'm trying to learn ASP.NET MVC, so I did as test project this where
Coders, I am in process of writing test cases for Asp.net MVC 3 project
I just did a quick test with a simple ASP.NET MVC 3 sample by
I have this simple test project just to test the IncludeExceptionDetailInFaults behavior. public class
Lets say I have hierarchy like this (This is just a test program. Please
When I worked on asp.net mvc web site project, I investigated different approaches for
I want to generate Canonical url´s at my ASP.NET MVC project. I did a

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.