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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:58:40+00:00 2026-05-18T03:58:40+00:00

I have this CSS dropdown menu. I want the homepage to start on the

  • 0

I have this CSS dropdown menu. I want the homepage to start on the left side of the page, not on the center. Herein is the style sheet and the div tags for the dropdown navigation bar:

ul, li, html, a
{
  margin:0; padding: 0;

}

body
{
  text-align: center; 
  margin: 0 auto;
  padding: 0;
  font: 65% arial, sans-serif;
}

li
{
  list-style-type: none;
}

a
{
  text-decoration: none;
  color: #034af3;
}

ul#nav
{
  width: 22.5em;
  height:2.5em;
  margin: 2em auto 0;
  font-size: 1.5em;
}

ul#nav li
{
  position: relative;
  float: left;
  width: 5em;
  height: 2em;
  line-height: 2em;
  background-color:  #465c71;
  display: block;
  padding: 4px 0px;
  border-right: 1px #4e667d solid;
  color: #dde4ec;
}

ul#nav li.noBorder
{
  border-right: none;
}

ul#nav li:hover
{
  background-color: silver;
}

ul#nav li a
{
  display: block;
  float: left;
  width: 100%;
}

ul#nav li ul
{
  display: none;
}

ul#nav li:hover ul
{
  display: inline;
  float: left;
  width: 10em;
  height: auto;
  margin: 0; padding: 0.27em;
  font-size: 1em;
  text-align: left;
}

ul#nav li:hover ul li
{
  width: 100%;
  height: 2em;
  background-color: Yellow;
  border: none;
  border-bottom: 1px solid silver;
  overflow: hidden;
}

ul#nav li:hover ul li a
{
  display: block;
  margin: 0; padding: 0 0 0 .3em;
  height: 100%;
  line-height:2em;  
  color: #465c71;
}

ul#nav li:hover ul li a:hover
{
  background-color: white;
}
<div style="background:#3a4f63;">
  <ul id="nav">
    <li><a href="#">Home</a></li>
    <li><a href="#">Abour</a>
      <ul>
        <li><a href="#">About 1</a></li>
        <li><a href="#">About 2</a></li>
        <li><a href="#">About 3</a></li>
        <li class="noBorder"><a href="#">About 4</a></li>
      </ul>
    </li>
    <li><a href="#">Blog</a>
      <ul>
        <li><a href="#">About 1</a></li>
        <li><a href="#">About 2</a></li>
        <li><a href="#">About 3</a></li>
        <li class="noBorder"><a href="#">About 4</a></li>
      </ul>
    </li>
    <li class="noBorder"><a href="#">Contact</a></li>
  </ul>
</div>
  • 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-18T03:58:41+00:00Added an answer on May 18, 2026 at 3:58 am

    Try:

    body { text-align: left; }
    ul#nav { margin: 2em 0 0; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web page with a CSS dropdown navigation menu. My issue is
i have this css code, and i want to shorten it. #one{ background: #6cab26;
i have this CSS code: h1 { font-size:22px; color:#341C12; font-weight:normal; font-style:italic; } .h1color h1{
I have this CSS style that does a rounded corners for div border, but
I have got this css: <style type=text/css> #heading{ margin:auto; background-color: brown; } </style> and
I have this in my CSS file: body {style.css (line 3) background:#CDF8FF url(images/final_bg.jpg) no-repeat
So i have this dropdown made in html/css/js.. it slides down on mouseover, but
So I have this dropdown menu, when you hover over a link a dropdown
I have this html structure used for a dropdown menu : <ul> <li><ul>...</ul></li> <li>...</li>
I have a pretty standard CSS based dropdown menu. The main list is #mainNav

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.