Skip to main content
Print

CSS – Do not hard code global text sizes. Use Divi present style feature instead

Please do not hard code global text sizes like this: https://gyazo.com/e516dbede163fb3e12e16d7c2857338d

It makes it impossible to change the text sizes within the modules, so it forces us to add custom text changes to the stylesheet, and the client won’t be able to change text sizes at all, assuming they don’t know CSS.

Instead, use the Divi present style feature instead: https://gyazo.com/507a87d77f1e55286020f5241be01acd

More info on it here: https://www.elegantthemes.com/documentation/divi/divi-global-presets/

Table of Contents