Div 未使用 css 网格正确对齐
我在此页面上使用 960 网格系统,其中列出了我的 instapaper 书签:http://labs.tonyhue。 com/bookmarks/
然而,社交媒体部分与其他部分分开。它应该与编程部分之后的右侧对齐。有什么想法吗?
I'm using the 960 Grid System on this page where I list my instapaper bookmarks: http://labs.tonyhue.com/bookmarks/
However, the social media section is set off from the rest. It should be aligned to the right following the programming section. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
向您的
.grid_6
-Container 添加(固定)高度。您的问题发生在不同高度的浮动元素上。
关于浮动的好读: http:// /coding.smashingmagazine.com/2007/05/01/css-float-theory-things-you-should-know/
编辑:
否则,您可以添加一个包装器元素来清除浮动:
您可以使用
.wrapper {overflow:hidden;}
OR 清除浮动,您可以使用clearfix 方法: http://perishablepress.com/press/2009/12/06/new-clearfix-hack/Add a (fixed) height to your
.grid_6
-Container.Your Problem occurs on floated elements with different height.
Nice reading about floatings: http://coding.smashingmagazine.com/2007/05/01/css-float-theory-things-you-should-know/
Edit:
Otherwise you could add a wrapper element to clear your floats:
You can clear your floats with
.wrapper {overflow:hidden;}
OR you can use the clearfix method: http://perishablepress.com/press/2009/12/06/new-clearfix-hack/