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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:14:54+00:00 2026-06-10T03:14:54+00:00

Being new to css I found this first problem. I’m pretty sure this is

  • 0

Being new to css I found this first problem. I’m pretty sure this is some basic stuff and I’ll be very thankful if anyone can give me at least a hint in which direction I should move. I think I might just be heading in the wrong direction.

The problem:

I got this navigation with some separators and rollovers. The problem is that i can’t seem to add the left margin that is between the separator and the hover of the li. The separator always sticks to the hover. Adding the right margin works fine, but when i try to add the left one it just doubles the size of the right margin.

Here is the pic: http://bit.ly/OQTMda

#nav {
    position: absolute;
    top: 200px;
    width: 946px;
    height: 46px;
    padding: 7px;
    background: url('images/nav_bg.gif') top left repeat-x;
    }

#nav li {
    list-style: none;
    float: left;
    line-height: 46px;
    margin-right: 7px;
    }

#nav li:hover {
    background: url('images/nav_hover.gif') top left repeat-x;
    }

#nav li + li {
    background: url('images/separator.gif') top left no-repeat;
    }

#nav a {
    margin-left: 35px;
    margin-right: 35px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    }

Any advice given is appreciated. Thanks in advance!

  • 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-10T03:14:56+00:00Added an answer on June 10, 2026 at 3:14 am

    Avoid styling li elements with margins – paddings – line-heights. Rather style your inner a elements to achieve better results.

    Always think about li elements like aligned rude boxes to hold your design

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

Sidebar

Related Questions

being new to WPF this is a complex problem for me. What i want
I figured this would be simple, but being new to SSRS I'm not sure.
I'm making a small website and I'm very new to CSS but whenever I
Need some advice about a best-approach for this problem: I've fallen madly in love
I am new to CSS and have coded my first site with CSS. I
Being new to c#, I don't understand how variables are passed between objects. My
Being new to SQLAlchemy, I was wondering at what time would Session() should be
Being new to OpenCL i would like to know if the following scenario is
Being new to VS, how may I think of these two concepts, what is
Being new to both WPF and MVVM, I'm studying Josh Smith's article on the

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.