i am using nicolas gallagher's micro-clearfix in my Fixed layout. And in my layout the green colored footer does not appear. Which means the clearfix doesn't work properly
<div class="container">
<aside class="al">
</aside>
<section class="content">
</section>
<aside class="ar">
</aside>
<footer class="cf">
</footer>
</div>
css
.container {
width: 500px;
height: 400px;
margin: 0 auto;
}
.al {
background: red;
width: 100px;
height: 100px;
float: left;
}
.content {
float: left;
width: 300px;
height: 100px;
background: black;
}
.ar {
background: red;
width: 100px;
height: 100px;
float: left;
}
footer {
background: blue;
width: 100%;
height: 100px;
background: green;
}
and micro clearfix
.cf:after, .cf:before {
content: " ";
display: table;
}
.cf:after {
clear: both;
}
.cf {
*zoom: 1;
}
What am i doing wrong. how do i make this work. could someone help me please