CSS Float Clearing


/ Published in: CSS
Save to your folder(s)

Say you want a containing block with 2 floating elements to expand around the floating element, usually this wouldn't happen since the container has no height because the floating elements are out of the usual flow.

The method below fixes this problem.

URL: http://www.quirksmode.org/css/clearing.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.