Archived topic
What is the better way to use css/html?
5 replies · Started by Yannick on December 20, 2017
Hi everybody,
what is the better way to use css/html regarding page speed.
Global or for every single article/paragraph?
Example:
body {
word-spacing: -1px !important;
text-align: justify !important;
text-justify:auto !important;
}
or
in each paragraph on edit page in text: <p style="text-align: justify;">...
Hi there,
Global for sure as it will be less code than adding it using HTML way.
And it will be much easier to edit so you don't have to go through all the HTML styles again.
Thank you Leo,
trying to apply global settings a problem occurs.It also justifies all my Titles H1, H2...
How can I change this.
I tried:
body:not (h1, h2) {
word-spacing: -1px !important;
text-align: justify !important;
text-justify:auto !important;
}
but it's not working like this. You maybe have a solution?
What if you do:
p {
word-spacing: -1px !important;
text-align: justify !important;
text-justify:auto !important;
}
Pefect, thank you Leo!
No problem!