Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Text height question

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #45557
    DaninDor
    Member

    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/

    #138861
    DaninDor
    Member

    #138880
    Paulie_D
    Member

    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/

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.