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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:46:27+00:00 2026-05-14T15:46:27+00:00

Sorry folks, I must be brain-dead or something but I can’t get the styling

  • 0

Sorry folks, I must be brain-dead or something but I can’t get the styling on these drop-down menus to cooperate.

I have the color and the font right, but I have unwanted spaces between the list elements and the a and the a:hover sizes should be the same.

I would appreciate some help getting this to work correctly.

Here is the page

Here is the html:

  <ul class="dropdown">
<li><a href="#" id="home">Home</a></li>
<li><a href="#" id="about">About Us</a>
  <ul class="sub-menu">
    <li><a href="#">Our History</a></li>
    <li><a href="#">Our Process</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Financing</a></li>
    <li><a href="#">Testimonials</a></li>
    <li><a href="#">Subcontractors</a></li>
  </ul>
</li>
<li><a href="#"  id="personal">Personal Banking</a></li>
<li><a href="#"  id="commercial">Commercial Banking</a></li>
<li><a href="#"  id="service">Customer Service</a>
  <ul class="sub-menu">
    <li><a href="#">Our History</a></li>
    <li><a href="#">Our Process</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Financing</a></li>
    <li><a href="#">Testimonials</a></li>
    <li><a href="#">Subcontractors</a></li>
  </ul>
</li>
<li><a href="#"  id="investors">Investor Relations</a></li>
<li><a href="#"  id="contact">Contact Us</a></li>

Here is the CSS:

ul.dropdown        { position: relative; background: #4e8997; height: 40px; padding-left: 5px;  }
ul.dropdown li     { float: left; zoom: 1;  }
ul.dropdown li a
ul.dropdown li a:visited  { 
display: block;
margin-top: 5px; 
padding: .5em .6em;
line-height: 16px; 
color: #fff; 
font: bold 14px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; 
text-transform: uppercase;
border: none; 
}
ul.dropdown a:hover             { background-color: #c29c5d; color: #fff; }
ul.dropdown a:active                { background-color: #c29c5d; color: #fff; }

/*  LEVEL TWO */
ul.dropdown ul { 
    padding-left: 0;
    width: 200px; 
    display: none; 
    top:36px;
    margin-left: 0; 
    position: absolute;
}

ul.dropdown ul li { 
font: 10px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
border-bottom: 1px solid #ccc;
display: block;
margin: 0;
padding: 0; 
float: none; 
color: #fff; 
background-color: #c29c5d; 
}

ul.dropdown ul li a:link            { display: block; font-size: 10px; width: 188px; height: 16px;  }
ul.dropdown ul li a:hover           { background-color: #a2834d; color: #fff;  } 

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-05-14T15:46:28+00:00Added an answer on May 14, 2026 at 3:46 pm

    looks like you have forgotten a , comma between the two a rules you want

    ul.dropdown li a
    ul.dropdown li a:visited
    

    should be

    ul.dropdown li a,
    ul.dropdown li a:visited
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry to bother you folks. But i have a simple question. Ho can I
Sorry for question but I can't find answer anywhere on internet. I couldn't find
Sorry for this simple question, but I can't solve it... There is an example:
Sorry, I know this question is easy, but I don't know how to get
EDIT: I solved it seconds after posting the question (sorry!) but can't accept an
Well folks I am sorry for the weird title but couldnt find a better
Sorry folks but I asked a question earlier and perhaps did not explain myself
Sorry for this question to be a can you fix it one, but this
Sorry if it is a duplicate post. link text but i didnt get any
Sorry if this question's been asked before, but I can't seem to find 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.