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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:10:00+00:00 2026-05-25T21:10:00+00:00

On my nav bar there are two nav links with rounded borders, which when

  • 0

On my nav bar there are two nav links with rounded borders, which when they are hovered, the border size doubles. I can’t get it to work without the nav link moving on hover and the hover border doesn’t match the area of the original border. I’m sure it has to do with padding but I’ve tried everything I can think of. See example code – http://jsfiddle.net/mGjs6/3/

  • 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-25T21:10:01+00:00Added an answer on May 25, 2026 at 9:10 pm

    You need to change

    #signup a:hover

    to

    #signup:hover

    and remove the width

    #signup:hover {
        border: solid 2px #55971e;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
    }
    

    Example: http://jsfiddle.net/jasongennaro/mGjs6/6/

    Same with #clientarea

    The issue with the not matching up was the one element #signup had the border but then you were changing the border of a child element (a) on hover.

    EDIT

    As per the comment

    However when you hover, the text still moves to adjust for the
    increased border. The text needs to remain fixed with only the border
    changing.


    That happens because the border size is increasing. That is what is pushing the text down a pixel (that’s the increase in border size)

    You can’t fix that perfectly. Better to change the color of the border or the background.

    Example 2: http://jsfiddle.net/jasongennaro/mGjs6/9/

    (Hover over both to see the suggestions)

    EDIT 3

    I figured it out: decrease the padding by a pixel on the hover and it all works

    #signup:hover {
        border: solid 2px #55971e;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
        padding:3px 4px; //ADD THIS
    }
    

    Example 3: http://jsfiddle.net/jasongennaro/mGjs6/10/

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

Sidebar

Related Questions

I seem to be having two problems: My top nav bar links don't work
My app has two distincts modes. There's a tab bar controller in the app
I am trying to add a title to my nav bar which I have
OK, I have an Apple-themed nav bar, and for some reason there is some
I am working on a layout which contains a header, a nav bar, and
I have a nav bar with children unordered lists nested under the main navbar
im having trouble figuring out how to bind mouseout() to my entire nav bar
Not sure what's going on here, but my iPhone apps nav bar shows back
I am looking to create a Nav Bar in my Android application that functions
I got two viewControllers using a navigation bar. The first viewController displays some data

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.