Hello I am a new beginner to CSS, and I wondered if anyone could help to advise how I could set the font size for my entire webpage?
The tutorials I've been looking at just show me how to set font size for each separate section. I am using the same font-size for 99% of my page, so I don't want to have to code each and every single new paragraph, table row, cell, etc.
I'm already using a simple code for changing the font family for the ENTIRE page (see below), so I am assuming there is a simple code for the size that does the same.
<style>
*{font-family: Verdana;}
</style>
Thank you!
You can use font-size in the same wildcard selector:
* {
font-size: 1rem;
}
Keep in mind that the wildcard selector * carries the least specificity; any font sizes declared elsewhere will override this declaration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With