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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:55:07+00:00 2026-05-14T23:55:07+00:00

I am trying to create a simple menu using li elements, but it only

  • 0

I am trying to create a simple menu using li elements, but it only works on IE7, in FF and Chrome, the alignment get weird.
Also the :hover and :Active only works on IE7.

Could anybody give me a hit on this?

I would really appreciate it.

CSS:

#heading{
    width: 700px;
   height:auto; 
    margin: 0 auto;
    background-color:#FFFFFF;
    margin-top:5px;
    margin-bottom:5px;
    display:block;
}
#imglogo{
 float:left;

}

#barDescription{
    float:right;

}



#navigation{
    text-align: right;
    margin-top: 70px;
}

#navigation li{
    float: right;
    display: block;
    text-align: center;
    list-style-type: none;  
}
#navigation li a{

    color:#A08019;
    background-image: url('Images/Menu1.png');
    background-repeat:repeat-x;
    background-position: center center;
        text-decoration:none;   
        font-weight:bold;
    display: block;
    height:25px;
    vertical-align:middle;
        padding-right:10px;
        padding-left:10px;
}

navigation li a:hover{
    color:white;
    background-image: url('Images/Menu2.png');
    background-repeat:repeat-x;
    background-position: center center;
    text-decoration:none;   
    font-weight:bolder;
    display: block;
    height:25px;
    vertical-align:middle;
    padding-right:10px;
    padding-left:10px;


}
navigation li a:active{
    color:#B39A48;
    background-image: url('Images/Menu2.png');
    background-repeat:repeat-x;
    background-position: center center;
    text-decoration:none;   
    font-weight:bolder;
    display: block;
    height:25px;
    vertical-align:middle;
    padding-right:10px;
    padding-left:10px;


}

HTML:

<div id="heading" >
    <div id="imglogo">
        <img id="logo" src="Images/logo.png" alt="logo" />
    </div>
    <div id="barDescription">
       <h4>Especialidad en tapas,vinos y menus</h4>
       <h5>Restaurante de cocina creativa tradicional. Vinos y tapas</h5>
    </div>

    <ul id="navigation">
       <li><a href="#">Contacto</a></li>
       <li><a href="#">Ubicacion</a></li>
       <li><a href="#">Reservas</a></li>
       <li><a href="#">Menus</a></li>
       <li><a href="#">Local</a></li>
    </ul>

    </div>
  • 1 1 Answer
  • 1 View
  • 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-14T23:55:07+00:00Added an answer on May 14, 2026 at 11:55 pm

    Suns of Suckerfish teaches how to get there. (Example.)

    edit: Now that you posted the :active and :hover CSS, I can see you’re missing a # in the beggining of the rule. So it is being applied to the “navigation” tags instead of the tags with “navigation” id. Change your CSS to add the # before “navigation”:

    #navigation li a:hover{
      /* ... */
    }
    #navigation li a:active{
      /* ... */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a simple dialog in MFC using Visual C++. My
I'm trying to create a simple BaSH-like grammar on ANTLRv3 but haven't been able
I'm trying to create a simple toggling sidebar using jquery, where it expands and
Im using Eclipse 3.4, EclipseMe 1.7.9. Im trying to deploy/create package a simple project
I am trying to create a simple page that enters data in to a
I'm playing with the ASP.NET MVC Framework, trying to create a simple site. My
I am trying to create a rather simple effect on a set of images.
I'm new to postgreSQL and I have a simple question: I'm trying to create
I'm trying to come up with a simple and efficient way to create a
I'm trying to create simply connect with ActiveMQ using JNDI. I have: Queue named

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.