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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:42:07+00:00 2026-05-13T10:42:07+00:00

Using CSS Style Sheet for my Web page. I want to use a side

  • 0

Using CSS Style Sheet for my Web page.

I want to use a side bar menu in my web page. If i click the menu, the lift of sub menus will display on the left side.

Html Code.

<ul id="navlist">
      <li><a id="n1" href="">Home</a></li>
      <li><a id="n2" href="">News</a></li>
      <li><a id="n3" href="">Events</a></li>
      <li><a id="n4" href="">Reviews</a></li>
      <li><a id="n5" href="">Forum</a></li>
      <li><a id="n6" href="">Contact Us</a></li>
      <li><a id="n7" href="">Links</a></li>
</ul>

CSS Style Sheet Code.

#navlist{
    margin-left: 0px;
    padding-left: 0px;
    white-space: nowrap;
    position: absolute;
    height: 27px;
    width: 777px;
    top: 225px;
}
#navlist li{
    display: inline;
    list-style-type: none;
}
#navlist a {
    padding: 3px 10px;
    background-image: url(images/button.gif);
    height: 20px;
    width: 91px;
    display: inline;
    position: absolute;
    text-align: center;
    color: #fff;
    text-decoration: none;
}
#navlist a:hover{background-image: url(images/buttonover.gif);}
#n1{left: 0px;}
#n2{left: 111px;}
#n3{left: 222px;}
#n4{left: 333px;}
#n5{left: 444px;}
#n6{left: 555px;}
#n7{left: 666px;}
#leftside{
    float: left;
}
#leftside h3{
    border-top-width: 3px;
    border-right-width: 3px;
    border-bottom-width: 0px;
    border-left-width: 3px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #00306f;
    border-right-color: #00306f;
    border-bottom-color: #00306f;
    border-left-color: #00306f;
    width:200px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    background-color: #FFFFFF;
    text-align: center;
    display: block;
    margin-left: 35px;  
    margin-top: 35px;   
}

The above code is display a menu, I want to display a sub menus on left handed side, when
i click the menu, the sub menu should display according the menus.

Note:

I don’t want separate side bar menus, I want to use my Header menus, when i click the Header menus, the side bar menus should display according to the related header

Need CSS Style Sheet Code Help.

  • 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-13T10:42:07+00:00Added an answer on May 13, 2026 at 10:42 am

    i brought you some code … but i am not sure if it is exactly what you are looking for… so , look at the demo first

    Html Code:

    <div id="navigation">
    <ul>
        <li>
        <a href="#">Menu Item 1</a>
            <ul>
                  <li><a href="#">sub menu item 1</a></li>
                  <li><a href="#">sub menu item 2</a></li>
                  <li><a href="#">sub menu item 3</a></li>
                  <li><a href="#">sub menu item 4</a></li>
            </ul>
        </li>
    
        <li>
        <a href="#">Menu Item 2</a>
            <ul>
                  <li><a href="#">sub menu item 1</a></li>
                  <li><a href="#">sub menu item 2</a></li>
                  <li><a href="#">sub menu item 3</a></li>
                  <li><a href="#">sub menu item 4</a></li>
            </ul>            
        </li>
    
        <li>
        <a href="#">Menu Item 3</a>
            <ul>
                  <li><a href="#">sub menu item 1</a></li>
                  <li><a href="#">sub menu item 2</a></li>
                  <li><a href="#">sub menu item 3</a></li>
                  <li><a href="#">sub menu item 4</a></li>
            </ul>            
        </li>
    
        <li>
        <a href="#">Menu Item 4</a>
            <ul>
                  <li><a href="#">sub menu item 1</a></li>
                  <li><a href="#">sub menu item 2</a></li>
                  <li><a href="#">sub menu item 3</a></li>
                  <li><a href="#">sub menu item 4</a></li>
            </ul>            
        </li>
    </ul>    
    

    Style Sheet:

    body{font-family:"Times New Roman", Times, serif; font-size:18px;}
    
    #navigation
    {width:100%; height:30px; background:#999;}
    
    #navigation ul
    {margin:0px; padding:0px;}
    
    #navigation ul li
    {display:inline; float:left; list-style:none; margin-left:15px; position:relative; height:30px;}
    
    #navigation li a
    {color:#fff; text-decoration:none;}
    
    #navigation li a:hover
    {color:#fff; text-decoration:underline;}
    
    #navigation li ul
    {margin:0px; padding:0px; display:none; position:absolute; left:0px; top:20px; background-color:#999;}
    
    #navigation li:hover ul
    {display:block; width:160px;}
    
    #navigation li li
    {list-style:none; display:list-item;}
    
    #navigation li li a
    {color:#fff; text-decoration:none;}
    
    #navigation li li a:hover
    {color:#fff; text-decoration:underline;}
    

    Oregonal source from here

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

Sidebar

Related Questions

Using CSS Style Sheet In my web page, i have two class like menu
Using CSS style Sheet I have the button images, I want to add a
I want to implement different CSS style sheet using javascript or code behind on
I want to style the last TD in a table without using a CSS
A designer coded an html template using CSS best practices. I want to use
I'm having a problem using CSS's display:inline property with the list-style-image: property on <li>
When you want to add whitespace between HTML elements (using CSS), to which element
Using CSS, I'm trying to specify the height of a span tag in Firefox,
I am using CSS Tidy. Due to all of its compression measures, in some
How can I create rounded corners using CSS?

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.