position a div on top of an image

后端 未结 4 1036
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 05:50

I want position a DIV with the content of an addsense script on top of a img that I use as a banner.

I have the img tag inside a div. then I put the google script inside

4条回答
  •  情歌与酒
    2021-02-04 06:08

    Have the parent with position: relative, the children with position: absolute, and use negative values for margin on the children to move it on top. You may not even need to deal with z-index.

提交回复
热议问题