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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:29:15+00:00 2026-05-23T07:29:15+00:00

I have a strange issue with my css navigation menu. The code is here:

  • 0

I have a strange issue with my css navigation menu. The code is here:

<style>
.navigation { width: 1010px; }
.navigation li { float: left; display: inline;}

.navigation li a { display: block; height: 60px; text-indent: -9999px; background:     #EFE8C9 url(../images/bg/primary_navigation.gif) no-repeat 0 0;}
#link1 { width: 96px; background-position: 0 0; }
#link1:hover { background-position: 0 -60px; }
#link2 { width: 166px; background-position: -96px 0; }
#link2:hover { background-position: -96px -60px; }
#link3{ width: 138px; background-position: -262px 0; }
#link3:hover { background-position: -262px -60px; }
#link4 { width: 166px; background-position: -400px 0; }
#link4:hover { background-position: -400px -60px; }
#link5{ width: 134px; background-position: -566px 0; }
#link5:hover { background-position: -566px -60px; }
#link6 { width: 76px; background-position: -700px 0; }
#link6:hover { background-position: -700px -60px; }
#link7 { width: 108px; background-position: -776px 0; }
#link7:hover { background-position: -776px -60px; }
#link8 { width: 126px; background-position: -884px 0; }
#link8:hover { background-position: -884px -60px; }
</style>
<html>
<div id="primary_navigation">
<ul class="navigation">
    <li><a href="#" id="link1">Link 1</a></li>
    <li><a href="#" id="link2">Link 2</a></li>
    <li><a href="#" id="link3">Link 3</a></li>
    <li><a href="#" id="link4">Link 4</a></li>
    <li><a href="#" id="link5">Link 5</a></li>
    <li><a href="#" id="link6">Link 6</a></li>
    <li><a href="#" id="link7">Link 7</a></li>
    <li><a href="#" id="link8">Link 8</a></li>
</ul>
</div>
</html>

As you will see the menu position is off by around 40 pixels and I can’t figure out why. I have built plenty of these menus and never had this problem!

I’ve tried using a couple of versions that work fine and adapting them to this menu but as soon as I test it the same issue occurs.

I’ve also tried searching the forum for similar issues but have had no success.

Any help is greatly appreciated.

Thanks for your time.

  • 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-23T07:29:16+00:00Added an answer on May 23, 2026 at 7:29 am

    add a reset to the padding of the navigation class:

    ul.navigation {
        padding: 0;
        ..... rest of the css
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this strange issue with css hover, on chrome and safari (on opera
So I have some strange issue with nl2br so I have the following code:
I have a very strange issue, that I'm hoping someone here can help me
I have strange issue with nested left-joins in postgresql... It's hard to explain, but
I have a fairly strange(IMO) issue here with a webservice provided by a third
I have very strange issue, on most browsers (ie, ff, chrome, safari). Here is
I have a strange issue: I am using SPContext.Current.Web in a .aspx page, but
I have this strange issue with my web app. You see, I'm using jQuery
I have a strange issue (at least for me :)) with the MySQL's locking
I have a strange issue that has arisen recently: Whenever I enter text, even

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.