WordPress.org

Support

Support » How-To and Troubleshooting » highlight text background

highlight text background

  • Is there a way to highlight the background of a single paragraph in a post? Example, my background is white and I wanted to highlight a certain paragraph to draw attention to it…but I don’t want to change the properties of my quote box, just a one time thing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Jeremy Clark

    @jeremyclark13

    Member

    Yeah you could do something like this
    <p style="background-color:#ffffff;"> your text </p>
    Just change the #ffffff to the color you want.

    Thanks. Is there a way to add a dashed border? If not that’s ok, I’m glad I could do the first thing

    Jeremy Clark

    @jeremyclark13

    Member

    sure just change it to this.
    <p style="background-color:#ffffff;border:1px dashed #ffffff;"> Again change the colors as you see fit.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘highlight text background’ is closed to new replies.