Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Arskrigitsioniets on November 12, 2023, 07:27:45 PM

Title: Should I use percentage if I want to change size of forum-wide font?
Post by: Arskrigitsioniets on November 12, 2023, 07:27:45 PM
In basic css from standard theme Curve2 I see .body font-size style indicated in percentage. But where is the root element, percentage of which is used? Or it's more correctly to edit this percentage if I want to change the font size?
Title: Re: Should I use percentage if I want to change size of forum-wide font?
Post by: Sesquipedalian on November 12, 2023, 07:47:33 PM
The default font size that all browsers start with is 16px. If relative font sizes traced up through the CSS inheritance tree reach the root element without encountering an absolute value, that's the value that will be used as the base.