The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Overlaying an Image instead of a Div
Heyo! Keeping this brief and to the point:
At the moment I’m styling Div’s to add opacity over an image set as a background image property in css.
Except I need to set this image in an instead of a div
Currently my code looks as follows http://codepen.io/anon/pen/YPmGVx
I need the same effect but need to be able to change the img with php (hence needing an ) and i’m not a fan of using any inline css.
*editted out some nasty spacing
Oh my! Yeah that is meant to be ‘in an img tag’… sorry about that.
http://codepen.io/anon/pen/YPmGVx
^^ Was quite silly of me to struggle this badly with it.
Just adding text onto image following this article > https://css-tricks.com/text-blocks-over-image/