What methods of ‘clearfix’ can I use?

I have the age-old problem of a `div` wrapping a two-column layout. My sidebar is floated, so my container `div` fails to wrap the content and sidebar.
There seem to be numerous methods of fixing the clear bug in Firefox: * `
` * `overflow:auto` * `overflow:hidden` In my situation, the only one that seems to work correctly is the `
` solution, which is a little bit scruffy. `overflow:auto` gives me nasty scrollbars, and `overflow:hidden` must surely have side effects. Also, IE7 apparently shouldn't suffer from this problem due to its incorrect behaviour, but in my situation it's suffering the same as Firefox. Which method currently available to us is the most robust?
I use jqui.net/tips-tricks/css-clearfix it helps me hide the dot :)

以上就是What methods of ‘clearfix’ can I use?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏