A Pen by Tu Chu Quang on CodePen.
Created
May 18, 2014 06:03
-
-
Save tucq88/83cfa58ed3554c854a52 to your computer and use it in GitHub Desktop.
A Pen by Tu Chu Quang.
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
<div class="container"> | |
<div class="col div-1">A</div> | |
<div class="col div-2">B</div> | |
<div class="col div-3">C</div> | |
</div> |
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
.div-1 { | |
background-color: red; | |
} | |
.div-2 { | |
background-color: green; | |
} | |
.div-3 { | |
background-color: blue; | |
} | |
.col { | |
width: 30%; | |
float: left; | |
position: relative; | |
margin-left: 50px; | |
} | |
.container { | |
} | |
.container:before, | |
.container:after { | |
display: table; | |
content: " "; | |
} | |
.container:after { | |
clear: both; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment