Skip to content

Commit

Permalink
Set a fixed table-layout in the clearfix to avoid max-width conflict.
Browse files Browse the repository at this point in the history
Some browsers ignore the max-width property on children of elements with display: table.

See http://www.carsonshold.com/2014/07/css-display-table-cell-child-width-bug-in-firefox-and-ie/
  • Loading branch information
iandunn committed Jan 11, 2015
1 parent 6b2e7c8 commit 6b0c771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sass/mixins/_mixins-master.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@mixin clearfix() {
content: "";
display: table;
table-layout: fixed;
}

// Clear after (not all clearfix need this also)
Expand Down
1 change: 1 addition & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ a:active {
.site-footer:after {
content: "";
display: table;
table-layout: fixed;
}

.clear:after,
Expand Down

0 comments on commit 6b0c771

Please sign in to comment.