-
-
Save rodi01/1715395 to your computer and use it in GitHub Desktop.
Renaming and Extending Easy-Clearing, AKA Clearfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.group:after { | |
content: "."; | |
display: block; | |
height: 0; | |
clear: both; | |
visibility: hidden; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.groupList > li, | |
.group:after { | |
content: "."; | |
display: block; | |
height: 0; | |
clear: both; | |
visibility: hidden; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* IE6 */ | |
* html .groupList li, | |
* html .group { height: 1%; } | |
* html .groupList li li { height: auto; } /* Resets nested LIs */ | |
/*IE7 */ | |
.group > li, | |
.group { min-height: 1px; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="comments"> | |
<li class="group"> | |
<img src="carla.jpg" alt="Carla's Picture" /> | |
<p>Tiny and I miss you</p> | |
</li> | |
<li class="group"> | |
<img src="steven.jpg" alt="Steven's Picture" /> | |
<p>I need a favor! It will take you 5 seconds.</p> | |
</li> | |
<li class="group"> | |
<img src="buzz.jpg" alt="Buzz's Picture" /> | |
<p>I speak gibberish</p> | |
</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="comments groupList"> | |
<li> | |
<img src="carla.jpg" alt="Carla's Picture" /> | |
<p>Tiny and I miss you</p> | |
</li> | |
<li> | |
<img src="steven.jpg" alt="Steven's Picture" /> | |
<p>I need a favor! It will take you 5 seconds.</p> | |
</li> | |
<li> | |
<img src="buzz.jpg" alt="Buzz's Picture" /> | |
<p>I speak gibberish</p> | |
</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* IE6 */ | |
* html .group { height: 1%; } | |
/*IE7 */ | |
.group { min-height: 1px; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment