Image positioning outside a div

限于喜欢 提交于 2019-12-25 08:33:36

问题


i have set the top of an image to -200px relative to the div that contain that image. for example:

The problem is that the div "one" is hidding me the image that i put on "imageup". I tried setting up z-index on #imageup with no succeed. Heres is the specific problem:

http://www.ofertasybonos.com/ofertas-automovil

As you see the image coches.png is hidden by another div, how i solve this setting a css property on #imageup or on the coches.png


回答1:


On #imageup:

  • Change position: relative to position: absolute.
  • Change top: -200px to top: 100px.
  • You win (demo).


来源:https://stackoverflow.com/questions/5235119/image-positioning-outside-a-div

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!