I have an <UL> with each <li> being arranged inline for my navigation. Each <li> has a transition that enlarges the text when hovered over. The problem is that when the text enlarges it causes the text to the left and right of it to move outward to make room for the enlargment. I'm trying to figure out how to keep the text from causing the neighboring text to move over when it enlarges. Thanks for any help. Below is the CSS I'm using if it is of any help.
#menu {
text-align: center;
margin: 0;
height: 24px;
padding: 2px 8px 0px 8px;
background-color: black;
}
#menu a {
font-size: 1.1em;
color: white
-o-transition: all .3s linear;
-ms-transition: all .3s linear;
-moz-transition: all .3s linear;
-webkit-transition: all .3s linear;
transition: all .3s linear;
}
#menu a:hover {
color: red;
font-size: 1.2em;
}
#menu li {
margin: 0px;
padding: 0px 5px 0px 5px;
display: inline;
}