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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:15:26+00:00 2026-06-05T15:15:26+00:00

So I have this navbar I’m making; I have a Jsfiddle to demonstrate. If

  • 0

So I have this navbar I’m making; I have a Jsfiddle to demonstrate. If you hover over an element, the sublist appears, but if you look carefully, its left edge is just 1 pixel in front of the navbar element that summoned it.

Is there any CSS rule I can add to get rid of this i.e. move the sublist back a pixel? I know it is possible to achieve this with JS (get every navbar element, calculate its distance from the left, take its sublist and give it a left value of one less than that of the element), but for now I’d like to avoid it for now.

I’d prefer a CSS solution if possible, but of course it it isn’t, please tell me and, if you can, provide a JS alternative.

  • 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-05T15:15:27+00:00Added an answer on June 5, 2026 at 3:15 pm

    jus add margin-left: -1px; to your #nav li:hover ul to push it 1 pixel to the left.

    see it working here.

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

Sidebar

Related Questions

If I have a chunk of code like this: .hover( function () { hoverState($(#navbar
I'm making a ul-based horizontal navbar, but I want to have two levels heading
Have this self-made slider: http://jsfiddle.net/wyc3P/4/ What it does: takes min and max values in
I have this menu: #navbar { text-align: center; margin: auto; padding: 0; height: 1em;
I have a header div as the first element in my wrapper div, but
I have search for this problem for over 2 hours and i dont understand
I have this structure <nav> <ul id=nav class=sf-menu sf-navbar sf-js-enabled sf-shadow> <li id=level1-home class=current
i know this is incredibly easy but I have been writing and rewriting this
I have some CSS like this: #navBar ul { list-style-type:none; margin:0; padding:0; } #navBar
So I have the following page with a navbar: http://michigangurudwara.com/pclass/ and it doesn't look

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.