Get the App
SLTechnology News&Howtos  ›  Development  › 

How to set the uniform font size of div on the whole web page

Shulou Source: shulou.com Published: 2022-06-01 07:52:49 10月01日 Update

This article mainly explains the "how to set the full page div font size uniform", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to set the full page div font size uniform" bar!

Full-page div font size confrontation setting

In addition, in the previous consistent brand gap version of the hunter, its web page html acquiesced in font size, default font, font hue, picture frame can be unmatched, defense this kind of most basic compatible title.

1. Div font CSS code for equipment with the same setting:

Div {font-size:12px}

Put the above code in the most suitable place of the web page CSS to complete the full page counterbalance configuration and initialize the div font size to 12px.

Also OK

Body,div {font-size:12px;}

2. Instance code

Div font size instance www.CSS5body,div {font-size:12px;} I am in div, and the font size is set to 12px.

3. Screenshot

Thank you for your reading, the above is "how to set the whole page div font size uniform" content, after the study of this article, I believe you on how to set the full page div font size uniform this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Font size web page unification code learning content examples decoration consistency brand picture place that is size gap idea situation screenshot article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Redmi NVidia MariaDB Apple