Skip to content

Instantly share code, notes, and snippets.

@ymatuhin
Created July 29, 2015 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ymatuhin/ebd701bf56af519074d1 to your computer and use it in GitHub Desktop.
Save ymatuhin/ebd701bf56af519074d1 to your computer and use it in GitHub Desktop.
New clearfix css from css-tricks
/* метод Ильи Стрельцына */
.table {
padding: 0 10px;
background: #E76D13;
position: relative;
/* display: table */
-height: 1%; /*IE6*/
*zoom: 1; /*IE6-7*/
display: table;
}
/* Очень важное дополнение! */
.table:after {
/*content: '1 1';*/ /*Op15+*/
content: '1 1 1 1 1 1 1 1 1 1 1'; /*Op12+*/
font: .1px/0 a;
display: block;
word-spacing: 99in;
overflow: hidden; /*IE8-*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment