Home > Web Front-end > JS Tutorial > How to control font size with css? Introduction to the method of responsive font control in css

How to control font size with css? Introduction to the method of responsive font control in css

不言
Release: 2018-08-23 16:04:27
Original
1478 people have browsed it

The content of this article is about how to control font size with css? The introduction to the method of responsive font control in CSS has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

  #footer{
    font-size: 0.8rem;
  }
  @media only screen and (min-width:768px){
    #footer{font-size: 1rem;}
  }
  @media only screen and (min-width:992px){
    #footer{font-size:1.2rem;}
  }
  @media only screen and (min-width:2000px){
    #footer{font-size:1.6rem;}
  }
Copy after login

Related recommendations:

How to realize the animation effect of panorama with CSS3 (with code)

How to use pure CSS3 to realize the picture wheel The effect of broadcasting

The above is the detailed content of How to control font size with css? Introduction to the method of responsive font control in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template