html盒子之间不重叠,CSS - 如何浮动另一个div在另一个不重叠

嘿,我想把那个较低的div框放在这个上面的框旁边的细节,但当我试图绝对地定位它时,我下降了原因(我做了父div所有三个divs作为相对位置),我该如何解决这个问题或者其他更好的方法来解决这个问题。CSS - 如何浮动另一个div在另一个不重叠

股利说明

#user_panel - div around all the other divs ie parent div

#user_details - div with details on top

#user_photos - div with photo heading

#user_current - div at the lower part

CSS:

#user_panel

{

color: white;

position: relative;

}

#user_details

{

padding: 0 0 30px 0;

}

#user_details table

{

padding: 30px 20px 10px 30px;

border: 1px solid grey;

margin: 0 60px 0 40px

}

#user_details table tbody tr td#right

{

padding: 0 0 0 100px;

}

#users_title

{

padding: 20px 0 0 50px;

}

div#user_photos

{

width: 850px;

height: 230px;

border: 1px solid grey;

margin: 50px 0 0 40px;

padding: 0 0 20px 20px;

}

#user_current

{

border: 1px solid grey;

width: 320px;

position: absolute;

}

2013-03-22

Abhinav

+0

你能不能给我们一些CSS和HTML一起工作呢? –

2013-03-22 18:20:05

+0

请阅读[常见问题](http://stackoverflow.com/faq),学习如何询问关于做题......这是不正确的格式。您必须发布代码示例。要求我们访问网站是不可接受的。 –

2013-03-22 18:20:09

+0

'位置:absolute'将导致框不再影响其容器的自动高度,如果你给不X/Y坐标就会去到内容的底部,这样 –

2013-03-22 18:20:24

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值