fluid font size
2022年5月1日小于 1 分钟
fluid font size
Question
Create a heading of fluid font size.
- if viewport width is smaller than 200px, use 16px
- if viewport width is bigger than 400px, use 32px
- otherwise font-size is linearly scaled. For example if viewport is 300px = (200px + 400px) / 2, then font-size is 24px = (16px + 32px) / 2
<h1 class="title">BFE.dev</h1>