Este es el efecto que quieres lograr?
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> div#nav_menu {
width:200px;
height:auto;
overflow: hidden;
}
ul#nav {
margin:0;
padding:0;
list-style:none;
clear:left;
}
ul#nav li {
width:200px;
height:25px;
background-color:#d4e8e7;
font-family:Arial, Helvetica, sans-serif;
color:#ef7a1a;
font-size:14px;
margin-bottom:10px;
}
ul#nav li a {
color:#b7733b;
display: block;
text-decoration:none;
background-color: #EEEEEE;
padding: 5px 0px 0px 30px;
margin-left: 40px;
width: 200px;
height: 20px;
}
ul#nav li a.active {
margin-left:70px;
}
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" language="javascript"> $(document).ready(function(){
$("#nav a").not(".active").hover(function(){
$(this).stop().animate({
marginLeft : "70px",
}, 500 );
},function(){
$(this).stop().animate({
marginLeft : "40px",
}, 500 );
});
});
<li><a href="#" class="active">Home
</a></li> <li><a href="#">Portfolio
</a></li> <li><a href="#">About
</a></li> <li><a href="#">Contact
</a></li>
Probado en: IE8, Opera 10, Firefox 3.6.8