[Resolved] What is the better way to use css/html?

Home Forums Support [Resolved] What is the better way to use css/html?

Home Forums Support What is the better way to use css/html?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #453729
    Yannick

    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;”>…

    GeneratePress 2.0.1
    GP Premium 1.5.6
    #453749
    Leo
    Staff
    Customer Support

    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.

    #453751
    Yannick

    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?

    #453834
    Leo
    Staff
    Customer Support

    What if you do:

    p {
        word-spacing: -1px !important;
        text-align: justify !important;
        text-justify:auto !important;
    }
    #453836
    Yannick

    Pefect, thank you Leo!

    #453842
    Leo
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.