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

Home Forums CSS background image z-index?

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

    Hi guys,

    I have set an html background image, is it possible to give it a z-index so that it will be on top of the other images in the content?

    I have tried to set an z-index to it but with no success. you can see the page here

    for now i have done margin-right:20px to the background images that override the body background image, but this solution i hope is temporary…


    No, z-index cannot be applied to a background image.
    Without doing too much digging you may be able to accomplish your goal using something like this I haven’t done any testing, so i am not sure if even this will work, but it is somewhere to start.


    Thanks mate, i have already took this approach: put an inline image and set a z-index to it.

    Just tried to make stuff smarter, but it does not always works like that… :)

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