Created
February 9, 2011 17:51
-
-
Save ismasan/818889 to your computer and use it in GitHub Desktop.
Columns that work even on IE
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
<!-- This is how you lay out cross-browser columns. Stick to this and you're golden --> | |
<style> | |
.clearfix:after { | |
content: "."; | |
display: block; | |
clear: both; | |
visibility: hidden; | |
line-height: 0; | |
height: 0; | |
} | |
.clearfix { | |
display: inline-block; | |
} | |
html[xmlns] .clearfix { | |
display: block; | |
} | |
* html .clearfix { | |
height: 1%; | |
} | |
.column { width: 50%; float: left;} | |
</style> | |
<div class="clearfix" id="column_row> | |
<div class="column"> | |
This is the first column | |
</div> | |
<div class="column"> | |
This is the second column | |
</div> | |
<div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment