Skip to content

Commit

Permalink
Added clearfix hack explaination to floats
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenfazah committed Jul 19, 2016
1 parent 12d8bd8 commit 34a1bbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ of float.
![Clearing a Float](assets/images/floated-block-elements-04.png)

> Ordinarily, elements expand to hold their containers. However, floated
elements are excluded from this, so floating an element may lead to its
container's height shrinking down to nothing. Keep this in mind when using
floats!
> elements are excluded from this, so floating an element may lead to its
> container's height shrinking down to nothing. To fix this, we use a "cleafix
> hack" by applying `overflow: hidden;` to the container's style declarations.
#### Your Turn : Basic Positioning (Dimensions, Float/Clear)

Expand Down

0 comments on commit 34a1bbf

Please sign in to comment.