Forums

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

Home Forums Design how to display background image above inner div

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #275415
    newcss
    Participant

    Hi,

    I have a html like this
    https://codepen.io/aspnetgal/pen/VBJEvL

    I want the background image display above the inner div how to do this.

    #275417
    Beverleyh
    Participant

    The nature of a background-image is that it displays underneath/behind whatever else is in that element.

    If you want it to display above/over-the-top, try moving it into another element – maybe as a sibling of the inner div. you may have to use absolute positioning and change the z-index to customise the layer order.

    #275420
    newcss
    Participant

    Hi,
    Can you explain with a example if possible

    #275455
    newcss
    Participant

    I have done like this

    https://codepen.io/aspnetgal/pen/GBbPwp

    but there shud not beenter code here gap between divs

    #275456
    Beverleyh
    Participant

    Sorry, I dont understand what you mean.

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