DIV的定位不正确

时间:2011-10-25 13:38:29

标签: css

在我http://www.replyonline.co.uk/avaya/16312_UC_ms/costs/index.html的网页上,您会看到名为#twitter的推特div。

正如你所看到的,它看起来不合适,需要在它左边的4 #about div之后,但也需要与其他人对齐。它目前看起来很低下。

我已经摆弄了CSS,但没有运气。

这是关于盒子和推特框的CSS:

#about{
width: 260px;
min-height: 140px;
float: left;
margin: 0 35px 10px 0;
background: url(../images/about_grad.jpg) bottom right;
display: block;
}

#twitter{
float: right;
width: 260px;
margin-bottom: 20px;
height: 290px;
overflow: auto;
font-size: 11px;
background: #ececec;
}

由于

2 个答案:

答案 0 :(得分:3)

我在div链接的项目周围添加了一个包装a(没有样式)并删除了推文框的float:right属性 - 这似乎有效。

答案 1 :(得分:0)

只需从float: right移除#twitter