Skip to content

Instantly share code, notes, and snippets.

@Trindaz
Created April 10, 2013 03:38
Show Gist options
  • Select an option

  • Save Trindaz/5351594 to your computer and use it in GitHub Desktop.

Select an option

Save Trindaz/5351594 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Side By Side Div Example</title>
<style>
div.left-column {
width: 20%;
min-width: 200px;
float: left;
background-color: yellow;
}
div.right-column {
width: 20%;
min-width: 200px;
float: left;
background-color: red;
}
div.column: {
color: blue;
}
</style>
</head>
<body>
<div>
<div class="left-column column">Left column</div>
<div class="right-column column">Right Column</div>
</div>
<div>
<div class="column">Another column</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment