Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #336718

    Hi,

    I’m trying to add a background on my h3 only on my services page. I’ve added a class in html view to my title , the class is “service-title”
    Then I add this css but the problem is it’s the full width that takes the background color and I only want it around the title. What do I miss in my css? I can’t see.. Can you help me?

    Thanks

    div.avia_textblock .service-title {
    background: #C1D540;
    background-size: 210px 40px;
    background-repeat: no-repeat;
    border: 1px solid;
    padding: 5px 25px;
    margin: 20px 0px;
    text-align: center;
    }

    #336774

    Hi chryseis!

    Can you post the link to your page where we can see your h3 element please?

    Regards,
    Yigit

    #342621

    Hi,

    Sorry for the late answer. I have succeeded finally but changed my mind and won’t put the background in the end. You can close this thread.

    Thanks a lot

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘customize a h3 with background color’ is closed to new replies.