Sep.25

Feb.09

CSS: Clearing Floats with Overflow

One of the common problems we face when coding with float based layouts is that the wrapper container doesn’t expand to the height of the child floating elements. The typical solution to fix this is by adding an element with clear float after the floating elements or adding a clearfix to the wrapper. But did you know you can also use the overflow property to fix this problem? It’s not a new CSS trick either. It’s been documented before long long ago. Today I would like to revisit the topic along with a few tips.

Some nice tips for those just starting with HTML and CSS and want to learn more about layouts.

 

Web Design,CSS,HTML

Dec.19

Nov.10

Sep.24

Sep.23

Aug.02