Skip to content

Instantly share code, notes, and snippets.

@blairanderson
Created November 3, 2014 21:59
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 blairanderson/966c3a7d5da380781f67 to your computer and use it in GitHub Desktop.
Save blairanderson/966c3a7d5da380781f67 to your computer and use it in GitHub Desktop.
Simple CSS Columns With Border Separators
<div class="container">
<div> Column A </div>
<div> Column B </div>
<div> Column C </div>
</div>
body {
padding: 20px;
}
.container {
overflow: auto;
}
.container > div {
float: left;
width: 33%;
box-sizing: border-box;
-moz-box-sizing: border-box;
background-color: yellow;
}
.container > div {
height: 200px;
border-right: 1px solid gray;
}
.container > :last-child {
border-right: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment