The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Overlay image width gradient-linear

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #243939

    Howto add this effect so my post titles gets a better readability when post-titles is added on image.

    I am using this theme:

    I want to remove the background-color on post-titles and add image overlay with gradient-linear. I want the same effect as you can see here: (you need to narrow the width or hover image to see the effect on that theme) same effect is here:


    Can you show what you have so far in a demo?


    I dont have much to show. I have tried some tutorials without succsess. All I have is the css on the feature image. You need that?


    Can you paste both the html and the css of that feature image in a demo?


    Quick content image overlay…

    You have to shrink wrap the content image in div…apply position relative.

    Add the overlay div inside the wrap and position it absolutely. Apply whatever background color you need..and change the opacity on hover.

    This uses a simple rgba overlay but linear or radial gradients are also possible.

    If you want actual text content in the overlay, this would be the optimal method I feel.

    If you just want the color overlay, I’d do it with a pseudo-element rather than an actual div.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.