Is there a way to decrease the size of all DOM elements by a specific amount?
Currently, I am using Bootstrap styles where h5 is set at 14px and I need it to be 12px, and h1 is at 36px when I want it to be 34px, and so forth.
I have considered two options:
- To create custom CSS for each element individually, which would require significant adjustments.
- Using jQuery to loop through all DOM elements, identify their font sizes, and reduce them by 2px. This approach may negatively impact page load speed.
Are there any better alternatives to achieve this goal more efficiently?