Forums

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

Home Forums CSS Setting Minimum width to text when using CSS font-size:VW and Jquery

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45339
    Anonymous
    Inactive

    It’s my first time ever using CSS vm font sizing to make my text scale according to the browser window, and alittle jQuery is being used too. It works great but when you re-size the browser to a smaller scale the text shrinks beyond reading level. I want to set a minimum font size to this. Much like CSS min-width but for text. If you go to “contact us” and resize the browser. The phone, email, and fax text become too small at a certain point.
    http://reallycoolstuff.net/PROJECTS/official/

    #137850
    Paulie_D
    Member

    Why can’t you change the value in a media query..wouldn’t that be the normal way to go?

    I assume you mean vw or vh rather than vm?

    https://css-tricks.com/viewport-sized-typography/

    #137853
    Anonymous
    Inactive

    @Paulie_D right i meant VW. And i guess i could do it with media queries but this seems more fluid to me.

    #137859
    Anonymous
    Inactive

    @Paulie_D that din’t help much. I still need a way to limit the font size.

    #137863
    Paulie_D
    Member

    There is no min-font-size property AFAIK so I think you are out of luck.

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