Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1197132

    Hi everyone,
    I found a forum thread here that talked about adding a yellow background color to text and after applying it, I’m having a weird spacing issue that I can’t figure out. Can someone tell me where I went wrong? Please :)

    Here is the post for reference: https://kriesi.at/support/topic/how-to-highlight-text-in-blog-posts/

    I added this css to site:

    .customized-heading {
    background: #1B4074 !important;
    color: #2D2D2D !important;
    font-size: 14px;
    padding: 5px 20px;
    }

    Then added this to the text block code area:

    <h4 class=”customized-heading”><p style=”text-align: center;”>Need to sell your house FAST? Overwhelmed by costly REPAIRS? Just need a STRESS-FREE experience?</p></h4>

    It did what I wanted to but there is a ton of space on the right and left that is highlighted and that is my issue. I am hoping to get it to just highlight the text and not the space to the left and right..

    Any advice would be greatly appreciated!!

    Thanks,
    Will

    #1197596

    Hey willevo311,

    Please try this instead:

    .customized-heading {
    display: table; 
    background: #1B4074 !important;
    color: #2D2D2D !important;
    font-size: 14px;
    padding: 5px 20px;
    }

    Best regards,
    Rikard

    #1197796

    Perfect!! Thanks.. I appreciate the help!!

    #1197934

    Hi,

    Great, I’m glad that we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.