Responsive font size in CSS

前端 未结 30 2699
刺人心
刺人心 2020-11-22 07:23

I\'ve created a site using the Zurb Foundation 3 grid. Each page has a large h1:

30条回答
  •  有刺的猬
    2020-11-22 07:45

    There are the following ways by which you can achieve this:

    1. Use rem for e.g. 2.3 rem
    2. Use em for e.g. 2.3em
    3. Use % for e.g. 2.3% Moreover, you can use : vh, vw, vmax and vmin.

    These units will autoresize depending upon the width and height of the screen.

提交回复
热议问题