Forums

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

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #200399
    robguy21
    Participant

    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

    #200401
    robguy21
    Participant

    Oh my! Yeah that is meant to be ‘in an img tag’… sorry about that.

    #200402
    robguy21
    Participant

    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/

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