[Support request] opaque background on main image

Home Forums Support [Support request] opaque background on main image

Home Forums Support opaque background on main image

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1168556
    Richard

    Hi, how do i add in an opaque background like something on https://www.clapham-landscapes.co.uk/ in the main image please?

    #1168563
    Leo
    Staff
    Customer Support

    Hi there,

    Are you using a header element currently?

    If so can you link me to the site in question?

    Let me know πŸ™‚

    #1169598
    Richard

    Hi Leo, sure thing (how do i do that in private please?)

    #1169601
    Leo
    Staff
    Customer Support

    You can edit the original topic and use the private URL field.

    Let me know πŸ™‚

    #1169611
    Richard

    Thanks! I’ve done that πŸ™‚

    #1169692
    Leo
    Staff
    Customer Support

    So you want to apply that for the h1 and h2 on the home page hero?

    What about the button?

    #1171914
    Richard

    Yes please Leo.

    I’m just going to make the button a different colour I think πŸ™‚

    #1172170
    Leo
    Staff
    Customer Support

    Try adding a <div> around your page hero content like this:
    https://generatepress.com/forums/topic/parallax-text-background-box/#post-1170973

    #1173362
    Richard

    Thanks Leo, that’s added in a white background – ideally need it opaque – any ideas?

    #1173683
    David
    Staff
    Customer Support

    Hi there,

    in this CSS:

    .hero-content {
         background-color: #ffffff;
         padding: 20px;
    }

    Change:

    background-color: #ffffff;

    to:

    background-color: rgba(255,255,255,0.7);

    the 0.7 is the alpha value that defines its opacity

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