Css "menu" items
-
Hello, I was wondering if anyone knows if it is possible to make this work.
Lets say we have 4 menu items. On passive state, they are each 25% wide. Well actually, there is no place I can say that each of them is 25% wide, as far as I know, is there?
And when I hover over one of them, it becomes 40% wide, and the 3 remaining get 20% wide (5% less).
Is there a way to make this work in CSS?
So passive element width in % = (100-40ifelementhovered)/#ofpassiveelements ).Right now, I can make so that hovered elements get increased padding so that they appear wider, but that makes the whole menu wider, since the other elements do not compensate for the increase in width of a single hovered element.
Thank you
The topic ‘Css "menu" items’ is closed to new replies.