The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Text height question
Hi!
I have a little problem. I have a menu ul with a height of 4% of the whole page. I now want the font-size to follow the height of the ul. It looks like this:
The ul changes size according to the browserwindow’s size, but the text is always the same size.
The li.item font-size is set to 100% at the moment. Thanks in advance. http://greenavis.com/
—
There is a ‘new’ value “vh” (instead of px or em) which is a percentage of the viewport height.
This might work but it only works in latest browsers so you will need a fallback anyway.
https://css-tricks.com/viewport-sized-typography/
https://css-tricks.com/the-lengths-of-css/