Adding CSS to specific text block

  • Unknown's avatar

    Hi,

    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: (visible only to logged in users)

  • Unknown's avatar

    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 https://en.forums.wordpress.com/topic/border-around-text-2/

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