Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#page { background-image: url( ../images/grid.gif ); background-repeat: repeat; background-position: top left; }
#page * { background: transparent; }
body { text-align: center; font-size: 75%; line-height: 150%; }
body #page { overflow: hidden; display: inline-block; text-align: left; margin-left: auto; margin-right: auto; width: 81em; max-width: 100%; background-color: blue; }
body #page { display: block; }
body #page #left-nav { width: 17.284%; display: inline; float: left; margin-right: 1.235%; margin-left: 1.235%; background-color: yellow; }
body #page #main-content { padding-left: 12.346%; width: 38.776%; display: inline; float: left; margin-right: 2.041%; margin-right: 1.235%; background-color: orange; }
body #page #main-content .header { width: 21.053%; display: inline; float: left; margin-right: 5.263%; background-color: green; }
body #page #main-content .article { width: 73.684%; display: inline; float: left; margin-right: 5.263%; margin-right: 1.235%; background-color: red; }
body
+susy
#page
+container
background-color: blue
#left-nav
+columns(3)
+alpha
background-color: yellow
#main-content
+prefix(2)
+columns(4, 10)
+omega
background-color: orange
.header
+columns(1, 4)
background-color: green
.article
+columns(3, 4)
+omega
background-color: red
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" charset="utf-8">
</head>
<body>
<div id="page">
<div id="left-nav">
<h3>#left-nav</h3>
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
<li>Five</li>
</ul>
</div>
<div id="main-content">
<div class="header">
<h1>#main-content .header</h1>
</div>
<div class="article">
<p>#main-content .article</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.