New Landing How can we help? Themeforest Theme Support Dante How to control transparency of color behind text

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #70590
    carpetfiber101
    Member
    Post count: 57

    Hi Swift,
    I came across this Dante site and was wondering how they had the semi-transparent black box behind their words in the parallax sections.

    Fundraising

    How do I add the transparent background colors with text? Thanks!

    #70702
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    They have done it with custom css, they have added:

    <span class="highlight-black">Step by Step Guide</span>

    And then in their custom css:

    .highlight-black {
    background: black;
    background: rgba(0,0,0,.75);
    padding: 1px 3px;
    border-radius: 1px;
    margin-right: 2px;
    color: #fff!important;
    }

    – Kyle

    #84319
    a1astair
    Member
    Post count: 48

    Hi,

    I’ve followed the instructions as per the above, but when the text breaks over two lines, there is no padding at the end of the first line or at the beginning of the second line. See header in: http://www.howtobuyanengagementring.com/

    Is there any way to format this so that it includes appropriate padding and works at any screen size?

    Many thanks,

    Alastair

    #84368
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try adding this to your custom css:

    @media only screen and (max-width: 548px) { 
    div#header-sticky-wrapper {
    height: 140px!important;
    }
    }

    – Kyle

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register