Adding CSS to specific text block

  • Author
  • #3431270



    I would like to make some text in one of my text blocks more legible with following CSS code:

    p {
    color: white;
    text-shadow: -0.5px -.0px 0 #000, 1px .1px 0 #000;

    However, when adding this to the customizer it changes most of the text on my website. I am not too experienced with CSS but I am guessing the type selector “p” will affect all “paragraph” text? Is there a way to apply the CSS only to specific text? Thanks!

    The blog I need help with is


    Hi there,

    Above code will change all texts which are “Paragraph Text”. To apply CSS to the specific text we need to see your blog to identify the HTML Tag, class.

    However, If your specific text is a Header Tag then I have answered your query on your another same thread

The topic ‘Adding CSS to specific text block’ is closed to new replies.