Responsive font size in CSS

前端 未结 30 3241
刺人心
刺人心 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:55

    Use CSS media specifiers (that's what they [zurb] use) for responsive styling:

    @media only screen and (max-width: 767px) {
    
       h1 {
          font-size: 3em;
       }
    
       h2 {
          font-size: 2em;
       }
    
    }
    

提交回复
热议问题