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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:09:14+00:00 2026-05-29T17:09:14+00:00

All, I am trying to build a top menu. For some reason, the li

  • 0

All,

I am trying to build a top menu. For some reason, the li elements are not starting from the top of ul, there appears to be a small margin left at the top. Any explanation please.

jsfiddle: http://jsfiddle.net/K26TN/

HTML Code:

    <div id="menu_bars">
    <div id="main_bar">
        <ul>
            <li id="overview_tab" class="maintabs"><a  id="text_overview_tab">Overview</a></li><li id="collar_tab" class="maintabs"><a id="text_collar_tab">Collar/ Neckline</a></li><li class="maintabs" id="body_tab"><a  id="text_body_tab" >Body</a></li><li id="sleeves_tab" class="maintabs"><a id="text_sleeves_tab" >Sleeves</a></li>
        </ul>
    </div>
      </div>

CSS CODE:

html {
height: 100%;
}

body#container {
position: relative;
width: 100%
min-width: 1280px;
height: 100%;
min-height: 700px;
background-color: rgba(255,255,255,0.8);
margin: 0 auto;
}

    #menu_bars {
    position: relative;
    width: 90%;
    height: 20%;
    margin: 0 auto;
}
        #main_bar {
        float: left;
        width: 78%;
        height: 100%;
    }
    #main_bar ul {
        float: left;
        width: 100%;
        height: 100%;
        border-radius: 6px;             
        -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);      
    }
        .maintabs {
            display: inline-block;
            width: 25%;
            height: 100%;
            list-style-type: none;
            cursor: pointer;
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(255,255,255)), color-stop(100%,rgb(237,237,237))); /* Chrome,Safari4+ */
            background: -webkit-linear-gradient(top, rgb(255,255,255) 0%,rgb(237,237,237) 100%); /* Chrome10+,Safari5.1+ */
            background: linear-gradient(top, rgb(255,255,255) 0%,rgb(237,237,237) 100%); /* W3C */
        }
            .maintabs:first-child {
                border-top-left-radius: 6px;
                border-bottom-left-radius: 6px;                 }
            .maintabs:last-child {
                border-top-right-radius: 6px;
                border-bottom-right-radius: 6px;        
            }
            .maintabs a {
                display: block;
                height: 100%;
                color: rgb(125,125,125);
                line-height: 100%;
                font-size: 0.8em;
                text-decoration: none;
                text-align: center;
                text-shadow: 0px 1px 2px rgba(150,150,150,0.4);
                -moz-transition: all 0.3s ease-in;
                -webkit-transition: all 0.3s ease-in;
                -o-transition: all 0.3s ease-in;
                transition: all 0.3s ease-in;
            }
            #overview_tab a{
                color: rgb(142,101,143);
                text-shadow: 0px 1px 1px rgba(248,248,248,1);
            }
                .maintabs a:hover {
                    color: rgb(153,112,154);
                    text-shadow: 1px 1px 0 rgba(255,255,255,0.95);
                }
  • 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-29T17:09:16+00:00Added an answer on May 29, 2026 at 5:09 pm

    Your <li> elements are set to display: inline-block, but their vertical-align property defaults to baseline. Specify this in your CSS:

    #main_bar li {vertical-align: top}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a script to retrieve all feed entries from a given
I'm trying to build a small webmail app. When I read all the emails
I am trying to build a macro that formats all modified files before saving
I am trying to build a registration form. I have a model for all
Greetings all, I have a question. I am trying to build a parametrized query
I'm trying to combine all javascript files in a project during the build process,
I am trying to build a grid of items, all dynamically (rows and columns)
I've been trying to build this small java app. I find it very difficult
I'm trying to build a navigation window that never appears to end - each
I'm trying to build a Google Chart to show some uptime and downtime percentages,

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.