CSS

[ad_1]

Hi. I really need help with some CSS. Yes, I have googled. I’m sorry but I am just not understanding. I am in my products section. Listed a gift card sale we have going on. In the description I want to add a background block to some of the text to help it stand out.

Please dumb it down for me and help me. I would really appreciate it.

This is what is in the text box. And I would like this to be in a colored background. COLOR: #E3F2F1

<h5>Mother’s Day Bonus!</h5>

Thinking of going big? For a $1500 Gift Card purchase, she’ll also enjoy a <em><strong>complimentary Tox Treatment</strong></em>

&#x200B;

TIA

[ad_2]
1 Comment
  1. You’re going to need to provide more of the HTML than that. As any thing we would provide you would style every h5 on your site to use the background color, and we can’t do anything for the text.

    Basically you would need to target the wrapper around those elements. Most likely it is a <div>. SOmething like <div class=”product-description”> or whatever that surrounds that h5, and text.

    In the case above. You’d simply do

    .product-description {
    background-color:#e3f2f1;
    }

    which would set a background color behind everything inside that <div> . You’ll likely find it may need some padding around the edges if there isn’t any existing. In which case you’d just add something like padding:5px; (adjust the 5 accordingly).

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer