Skip to content

Instantly share code, notes, and snippets.

@tucq88
Created May 18, 2014 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tucq88/83cfa58ed3554c854a52 to your computer and use it in GitHub Desktop.
Save tucq88/83cfa58ed3554c854a52 to your computer and use it in GitHub Desktop.
A Pen by Tu Chu Quang.
<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>
.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