Forums

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
    Posts
  • #243939
    sindreolsson
    Participant

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

    I am using this theme: http://my.studiopress.com/themes/no-sidebar/

    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: https://preview.arraythemes.com/candid/ (you need to narrow the width or hover image to see the effect on that theme) same effect is here: http://theultralinx.com.

    #243942
    Atelierbram
    Participant

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

    #243947
    sindreolsson
    Participant

    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?

    #243949
    Atelierbram
    Participant

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

    #243954
    Paulie_D
    Member

    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.

    http://codepen.io/Paulie-D/pen/xOzPrb

    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.