Skip to content

Instantly share code, notes, and snippets.

@RMcGee
Created November 7, 2013 21:41
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 RMcGee/7362314 to your computer and use it in GitHub Desktop.
Save RMcGee/7362314 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheets/style.css" />
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
<![endif]-->
<title>Columns</title>
</head>
<body>
<div id="wrapper">
<div class="clearfix row">
<div class="column one-thirds">
<h3>Column 1</h3>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
<div class="column two-thirds">
<h3>Column 2</h3>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
</div>
</div>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------
.clearfix:after {
content: ".";
visibility: hidden;
display: block;
height:0;
clear: both;
}
.row{
background: url(../images/background.png) left top repeat-y;
}
#wrapper {
width: 940px;
margin: 0 auto;
padding: 0px 10px 0px 10px;
margin-top: 20px;
}
.one-thirds {
width: 300px;
background: lightblue;
padding: 10px;
}
.two-thirds {
width: 600px;
background: lightyellow;
padding: 10px;
}
.column {
float: left;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment