Skip to content

Instantly share code, notes, and snippets.

@gueno
Created March 26, 2012 14:35
Show Gist options
  • Save gueno/2205543 to your computer and use it in GitHub Desktop.
Save gueno/2205543 to your computer and use it in GitHub Desktop.
Untitled
body, html{ margin: 0;}
#contenant { overflow: hidden }
.div { float: left; margin-bottom: -100%; padding-bottom: 100%; }
.rouge { background: red; width: 34%; }
.bleue { background: blue; width: 32%; }
.jaune { background: yellow; width: 34%; }
#footer{ height: 100px; background: silver; text-align: center; padding: 5px;}
<div id="contenant">
<div class="div rouge">une div rouge<br/>qui a une certaine hauteur<br/><br/>à cause de son contenu<br/><br/><br/>qui la fait descendre plus bas que les autres</div>
<div class="div bleue">une div bleue</div>
<div class="div jaune">une div jaune</div>
</div>
<div id="footer">footer</div>
{"view":"split","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment