开发者

position div to the bottom

How can I get the content div to get at the bottom instead of that odd position?

http://jsfiddle.net/madprops/6FFXL/1/

<div>
 <div style='float:left'>name&nbsp;</div>
 <div style='float:left'>date&nbsp;</div>
 <div style='float:left'>comments&nbsp;</div>
</div>
<div id="co开发者_Go百科ntenido" style="font-size:20px;">content</div>

EDIT: removed float:top


It is at the bottom for me in your example, (FF5), but you should probably make it safe by setting content to clear your floated divs, like this:

<div id="contenido" style="font-size:20px;clear:both;">content</div>

Also, the float:top on your first div is invalid, there is no top property of float.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜