开发者

How to make a DIV float on top of another DIV without pushing down the CSS Underneath

开发者 https://www.devze.com 2023-02-06 22:53 出处:网络
Please take a look at the following example: http://jsfiddle.net/MVfVD/ I want the \"overlayedFrameFooter\" div to be onTOP of the frame,开发者_C百科 in a way where it doesn\'t add any height to the

Please take a look at the following example:

http://jsfiddle.net/MVfVD/

I want the "overlayedFrameFooter" div to be onTOP of the frame,开发者_C百科 in a way where it doesn't add any height to the surrounding items.

Any ideas?


Live Demo

  • I added position:relative to #frame.
  • I added width:100%; text-align:center to #overlayedFrameFooter.
  • I changed position:relative to position:absolute on #overlayedFrameFooter.

See here for an explanation of why this works.

0

精彩评论

暂无评论...
验证码 换一张
取 消