how to "fix" elements

by 4 replies
5
Hello,
I have a <ul> with <li> and <a> in those <li>

When I -hover- on -li a- I want to transform the text of -a- to uppercase, this causes the elements on the right of the li to slide forward because of the bigger size.
Is there a way to fix the element when I hover on it so the elements nearby won't be affected? The only thing I thought is to use absolute rule for every li but this would be impossible because this menu is generated dynamically and changes every time.
#website design #elements #fix
  • Could I have a look at the current page?
  • May be you should create another class for a hover to match li hover
    • [1] reply
    • You could give <ul> a fixed width so that when the LI gets bigger is doesn't effect the elements outside the UL.
  • As well as specifying the upper case, you could specify a new font size for the hover state. Something like .8em maybe.

Next Topics on Trending Feed