Font scaling based on width of container

后端 未结 30 3766
面向向阳花
面向向阳花 2020-11-21 04:35

I\'m having a hard time getting my head around font scaling.

I currently have a website with a body font-size of 100%. 100% of what though? This seems t

30条回答
  •  没有蜡笔的小新
    2020-11-21 05:08

    In one of my projects I use a "mixture" between vw and vh to adjust the font size to my needs, for example:

    font-size: calc(3vw + 3vh);
    

    I know this doesn't answer the OP's question, but maybe it can be a solution to anyone else.

提交回复
热议问题