Skip to content

Instantly share code, notes, and snippets.

@felipecabargas
Created June 27, 2013 06:46
Show Gist options
  • Save felipecabargas/5874441 to your computer and use it in GitHub Desktop.
Save felipecabargas/5874441 to your computer and use it in GitHub Desktop.
Two columns layout, centered.
<html>
<head></head>
<link href="styles.css" media="all" rel="stylesheet" type="text/css" />
<body>
<div id="center">
<div id="section"></div>
<div id="aside"></div>
</div>
</body>
</html>
#center{
width: 960px;
margin:0px auto;
}
#section{
width: 660px;
height: 200px;
margin: 20px;
background: #58FA58;
text-align: center;
float: left;
}
#aside{
width: 220px;
height: 200px;
margin: 20px;
background: #58FA58;
float: left;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment