float:right不是一直向右漂移 [英] float:right not floating all the way to the right

查看:295
本文介绍了float:right不是一直向右漂移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在看这个过去的日子,我在那里,我需要寻求帮助。

I've been looking at this for the past days now and I'm at the point where I need to ask for help.

http://cub.northnodes.com/ index.php / about / mission /

我需要现在捐赠栏向右浮动,它只有一半。我不知道为什么它停在那里,没有包含结束那里的div。我试图把它从 #center div,并把它放在它之前没有更好的结果。将它放在 #center div之后,使它漂亮留下一路漂亮,但低于 #center

I need the donate now column to float all the way to the right, but it only goes halfway. I can't figure out why it's stopping there, there's no containing div that ends there. I've tried to take it out of the #center div, and have placed it both before it with no better results. Placing it after the #center div makes it float left all the way beautifully, but below the #center where I don't want it to be.

推荐答案

如果其他人稍后:

我有一个类似的问题,其中float right只会移动到包含div的一半。它,它的兄弟姐妹,或容器有位置相对。然而,包含div的先前兄弟也有一个有浮动权的孩子(巧合,它是最后一个孩子;不确定?)。我解决了我的问题,通过添加一个明确:两个到包含有问题的浮动器的div。这是在Chrome上。

I had a similar issue where float right would only move halfway across its containing div. Neither it, its siblings, or container had position relative. However, the containing div's prior sibling also had a child with a float right (coincidence that it was the last child; not sure?). I solved my problem by adding a clear: both to the div containing the offending floater. This was on Chrome.

这篇关于float:right不是一直向右漂移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆