Search

4/28/2009

Blue Anvil Journal » Blog Archive » Experiments with floats: whats the best method of clearance?

Blue Anvil Journal » Blog Archive » Experiments with floats: whats the best method of clearance?

Conclusion

Overall, I think that the ‘clearfix’ pseudo method is the best method, currently, for clearing floats. The clear:both method is too bulky, the FnE method is just unnecessary, and the overflow:hidden method can get messy.

Therefore I have decided to use the “clearfix” pseudo class method in future projects, as it seems to balance browser support with ease of use and markup bulk, making it my favorite technique. Blue Anvil now uses this technique (instead of the overflow method I previously used).

沒有留言: