Skip to content
This repository was archived by the owner on Oct 30, 2021. It is now read-only.

Commit b2ac790

Browse files
committed
Updating clearfix
1 parent 25292c5 commit b2ac790

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

css/screen.css

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,25 +1343,22 @@ ul.menu ul ul ul li.pie_hover ul {
13431343
/* Fully browser compatible, works with screenreaders but doesn't work with images off/css on */
13441344
/*#nav ul.menu li a {display:block;width:100px;height:20px;background:url(../images/logo.png) -50px -50px no-repeat}
13451345
#nav ul.menu li a span{display:block;width:0;height:0;overflow:hidden;}*/
1346+
13461347
/* -- CSS Clearing -- */
1347-
.clearfix:after, .clearfix:before {
1348-
clear : both;
1349-
content : ".";
1350-
font : 1px/0;
1351-
display : block;
1352-
height : 0;
1353-
visibility : hidden;
1348+
.clearfix:before,
1349+
.clearfix:after {
1350+
content : "\0020";
1351+
display : block;
1352+
height : 0;
1353+
overflow : hidden;
13541354
}
13551355

1356-
/*:before is for gutter margin top*/
1357-
.clearfix {
1358-
display : inline-block;
1359-
display : block;
1360-
min-width : 0;
1356+
.clearfix:after {
1357+
clear : both;
13611358
}
13621359

1363-
* html .clearfix {
1364-
height : 1%;
1360+
.clearfix {
1361+
zoom : 1;
13651362
}
13661363

13671364
.clear {

0 commit comments

Comments
 (0)