Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1162987

    Hey everybody !

    I’m looking for applying this css style for a specific page:

    
    .page-id-26 p {text-align:justify;}
    

    but I would like it not apply to the sub-title “un peu de moi”

    How can I do that ?

    Thanks for helping (page link in attachement)

    • This topic was modified 5 years ago by ICEMAN.
    #1163006

    Hi,

    Please refer to this post – https://kriesi.at/documentation/enfold/intro-to-layout-builder/#turn-on-custom-css-class-field-for-all-alb-elements and enable custom CSS field for ALB elements and then edit your element and give it custom CSS class and change your code to following one

    .your-custom-class {text-align:justify;}

    Regards,
    Yigit

    #1163103

    Thank you Yigit, I will try to use your solution but do you have an idea to exept an area (special header area “un peu de moi”) from my code

    
    .page-id-26 p {text-align:justify;}
    
    #1163154

    Hi,

    Could you please rephrase? I am not sure if i understood you clearly.

    Best regards,
    Yigit

    #1164062

    Hi Yigit, sorry for the language, my english isn’t very good but I try to improve it day after day…

    I would like to apply my css for all the specific page id but I wuld like to exept the header subtitle “un peu de moi” from that css rule,

    Regards,
    Iceman

    #1164066

    Hi,

    My bad, i overlooked “not” part in your question :)

    You can add following custom CSS code as well

    .page-id-26 .av-subheading p {
        text-align: inherit;
    }

    P element that contains “un peu de moi” title does not have any class or ID therefore we cannot exclude it with a single code. If it had a class, you could use following code but that is not the case
    .page-id-26 p:not(.custom-class) {text-align:justify;}

    Regards,
    Yigit

    #1164190

    Hey Yigit, thanks a lot, it works well now
    Regards,
    Iceman

    #1164269

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Specific CSS apply for a specific page but exepting an element’ is closed to new replies.