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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:56:56+00:00 2026-06-01T20:56:56+00:00

im working on a website and i found a little problem with a css3

  • 0

im working on a website and i found a little problem with a css3 animation.. see when i hover the “home” button it pushes “about us” link .. how do i prevent that from happening?
here’s the code of it:

<div class="menu">
<ul>
<li id="one"><a href="">Home</a></li>
<li id="two"><a href="">About us</a></li>
</ul>
</div>

.menu ul{
margin: 0;
padding: 0;}

.menu li{
font-family: Helvetica, Arial sans-serif;
margin: 20px 10px;
display: inline-block;
*display: inline;}

.menu a{
position: relative;
color: #999;
text-decoration: none;
padding: 20px;
background-color: #DDD;
-moz-border-radius: 0 0 20px 20px;
-webkit-border-radius: 0 0 20px 20px;
-border-radius: 0 0 20px 20px;
-webkit-box-shadow: inset 10px -3px 10px #ccc;}

.menu a:hover{
background-color: #eee;
font-size: 150%;
-webkit-box-shadow: 0 0 0 #eee;
text-shadow: 0 0 10px #fff;
-webkit-transition: 0.5s ease;}

http://jsfiddle.net/nsdbV/

thank you 😀

  • 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-01T20:56:58+00:00Added an answer on June 1, 2026 at 8:56 pm

    By changing the font-size on :hover, you are changing the dimensions of the element and it’s the behaviour I would expect from the browser. Unless you use position: absolute instead of relative, the only way I can think to solve this is to use the transform property. I’ve ammended your example just a bit here: http://jsfiddle.net/nsdbV/2/

    .menu a{
        display: inline-block;
        -webkit-transition: -webkit-transform 0.5s ease;
    }
    .menu a:hover{
        -webkit-transform: scale(1.5);
    }​
    

    Rather than just expanding the text, this scales the entire box by a factor of 150%. I’ve only shown the changes I made above, but the jsfiddle link should give you a good idea of how to use it. You’ll need to tweak the CSS a bit, but hopefully it gives you something to go on.

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

Sidebar

Related Questions

Currently working with NSURLConnection. Found a great website showing important delegate methods coming with
I'm working on a website which has advert banners which link to external pages.
I just found a bug in a website I'm working on and I corrected
I am working on a website frontend and found myself constantly nesting divs for
hey i guys i want help from you. i am working on website project,
Working on a website that has Employee and Branch entities, using a database table
My website is working fine on IE, but when I open it on Firefox,
Im working on a website (html,css,javascript, ajax, php,mysql), and I want to restrict the
I'm working on a website for my county's fair. I want to allow my
I'm working on a website that will be using Facebook Connect to authenticate users.

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.