I have two div\'s (side by side) inside a parent div, i want right div to occupy 100% of remaining space (i.e. 100% - 200px) and should always stay next to left div (not bel
If you want right div to have constant width:
div
And CSS .wrapper{ margin-right: CONSTANTpx; } .wrapper div{ float:left; } .constant-width{ top: 0px; right:0px; position:absolute; width: CONSTANTpx } Works good without borders JSFiddle 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
And CSS
.wrapper{ margin-right: CONSTANTpx; } .wrapper div{ float:left; } .constant-width{ top: 0px; right:0px; position:absolute; width: CONSTANTpx }
Works good without borders
JSFiddle