开发者

CSS pushing container down after button

开发者 https://www.devze.com 2023-02-06 01:23 出处:网络
Ah, yet another CSS issue I\'m having. I\'m attempting to use custom buttons, replacing a LinkButton with an image. I have the button working, but now the content below the button is not being pushed

Ah, yet another CSS issue I'm having.

I'm attempting to use custom buttons, replacing a LinkButton with an image. I have the button working, but now the content below the button is not being pushed down. Have tried various things, but can't seem to find the answer.

Here's a jFiddle: http://jsfiddle.net/3hm5W/

Basically, the div id = sampleForm (the white form box) should start 5px after the div class = action-buttons. Currently the white box开发者_如何学编程 contains the red button.


All of the contents of your action-buttons are being absolutely positioned, which takes them out of the normal flow and makes the container have 0 height. Either get rid of the absolute positioning, or specify a height for your action-buttons div.

0

精彩评论

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

关注公众号