[Compass Core] New content char is the best practice for the pie-clearfix now. Avoids the gap at the bottom in some browsers.
Closes GH-179
This commit is contained in:
parent
ed75525b2a
commit
dafbf93999
@ -18,12 +18,9 @@
|
|||||||
// [Easy Clearing](http://www.positioniseverything.net/easyclearing.html)
|
// [Easy Clearing](http://www.positioniseverything.net/easyclearing.html)
|
||||||
// has the advantage of allowing positioned elements to hang
|
// has the advantage of allowing positioned elements to hang
|
||||||
// outside the bounds of the container at the expense of more tricky CSS.
|
// outside the bounds of the container at the expense of more tricky CSS.
|
||||||
//
|
|
||||||
// This method of clearing might cause a gap at the bottom of the page in
|
|
||||||
// some browsers when used on the last element of the page.
|
|
||||||
@mixin pie-clearfix {
|
@mixin pie-clearfix {
|
||||||
&:after {
|
&:after {
|
||||||
content : " ";
|
content : "\0020";
|
||||||
display : block;
|
display : block;
|
||||||
height : 0;
|
height : 0;
|
||||||
clear : both;
|
clear : both;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
.pie-clearfix {
|
.pie-clearfix {
|
||||||
display: inline-block; }
|
display: inline-block; }
|
||||||
.pie-clearfix:after {
|
.pie-clearfix:after {
|
||||||
content: " ";
|
content: "\0020";
|
||||||
display: block;
|
display: block;
|
||||||
height: 0;
|
height: 0;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
Loading…
Reference in New Issue
Block a user