Use in multimedia queries
HTML
<p class="fonts">Administrator</p>
Adding Media Queries
@charset "utf-8"; @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { .fonts { font-size: 75%; } } @media only screen and (min-width : 321px) { .fonts { font-size: 120%; } } @media only screen and (max-width : 320px) { .fonts { font-size: 120%; } } @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { .fonts { font-size: 120%; } } @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { .fonts { font-size: 150%; } } @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { .fonts { font-size: 120%; } } @media only screen and (min-width : 1224px) { .fonts { font-size: 156%; } } @media only screen and (min-width : 1824px) { .fonts { font-size: 200%; } } @media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) { .fonts { font-size: 190%; } }
I use% for the font size, here is just an example of the font size, try it and add% what you think is best
source share