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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:20:31+00:00 2026-06-13T03:20:31+00:00

I have a navcontainer with buttons in the container. I need to make a

  • 0

I have a navcontainer with buttons in the container. I need to make a dropdown list for only one of the buttons. How would this be accomplished with CSS/HTML. Here is my code:

HTML:

<div id="navcontainer">
            <a href="/home.html" class="button" style="width: 115px">About Us</a>
            <a href="/quote.html" class="button" style="width: 170px">Request a Quote</a>
            <a href="/affiliates.html" class="button" style="width: 115px">Affiliates</a>
            <a href="/pricing.html" class="button" style="width: 170px">Pricing & Plans</a>
            <a href="/addservices.html" class="button" style="width: 190px">Additional Services</a>
            <a href="/service.html" class="button" style="width: 165px">Service Details</a>
            <a href="/watering.html" class="button" style="width: 108px">Watering</a>
           </div> 

CSS:

#navcontainer {
 float: right;
 width: 1040px;
 height: 45px;
 text-align: center;
 line-height: 45px;
 color: #fff;
 margin-bottom: 6px;

}

.button {
text-align: center;
background: #226426;
color: #fff;
width: 100px;
height: 45px;
float: left;
text-decoration: none;
font-family: Arial, sans-serif;
font-size: 15px;
font-weight: bold;
border-right: solid 1px #91b293;
border-top: solid 1px #91b293;
border-bottom: solid 1px #91b293;

}

Do I need to make this into a ul or can I keep it as is, and just add a dropdown to the Services button? Thanks for your 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-06-13T03:20:33+00:00Added an answer on June 13, 2026 at 3:20 am

    As a general rule, it’s always a good idea to have your navigation in a list, it helps keep your options open to a multidimensional menu system at any point. Here is what I would do:

    HTML

    <ul id="nav">
    <li><a href="link1.html">link 1</a></li>
    <li><a href="link2.html">link 2</a>
    <ul>
    <li><a href="sublink1.html">sublink 1</a></li>
    <li><a href="sublink2.html">sublink 2</a></li>
    </ul>
    </li>
    <li><a href="link3.html">link 3</a></li>
    </ul>
    

    CSS

    #nav, #nav ul {list-style: none; margin: 0; padding: 0;}
    #nav li {position: relative;}
    #nav li ul {position: absolute; top: 100%; left: 0; display: none;}
    #nav li:hover ul {display: block;}
    

    jQuery – optional

    This is if you wanted some sort of effect on the

    function mainmenu(){
    $(" #nav ul ").css({display: "none"}); // Opera Fix
    $(" #nav li").hover(function(){
        $(this).find('ul:first').css({visibility: "visible",display:     none"}).show(800);
        },function(){
        $(this).find('ul:first').css({visibility: "hidden"});
        });
    }
    

    Hope this helps.

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

Sidebar

Related Questions

I have this HTML: #navcontainer ul { margin: 0; padding: 0; list-style-type: none; }
I have a navigation menu within a .navContainer css div. Upon click, one of
I have this HTML <div id=navContainer> <ul> <li class=selected><a href=#>Home</a></li> <li><a href=#>Services</a></li> </ul> </div>
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
I have this function function smth() { var container = null; var newContainer =
I have this code for my top.phtml file <div class=header-nav-container> <div class=header-nav> <h4 class=no-display><?php
I need to make a css navigation according to the following style: DESIRED LOOK
I have a drop down menu created purely with CSS. I would like to
have written this little class, which generates a UUID every time an object of
Have deployed numerous report parts which reference the same view however one of them

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.