Wondering if anybody can help with a css problem I’m having.. see this jsbin:
http://jsbin.com/uviyat/2/edit
Notice ‘Longer Wording Example’ – how can I get the triangle arrow indicator to scale vertically to dynamically fill the selected blue area height? (The triangle is generated in the last css rule..)
I’m stumped! Anybody got any ideas?
Thanks in advance..
EDIT – since Zoltans’s answer, I’ve had a go with Jquery here:
http://jsbin.com/uviyat/12/edit
Not sure if its the best way to do it? Where does the value ’16’ come from?
You can’t auto stretch the triangle. The simplest way to accomplish what you want is, probably, to define a small subclass for taller menu items – http://jsbin.com/uviyat/3/edit
…
UPDATE
Alternatively you can use the CSS3
background-size: coveron the:afterpseudo-element. But in that case you have to create an image of the triangle and set it as a background. Here is a DEMO