Skip to content

Commit

Permalink
Added .grid-container and .unit
Browse files Browse the repository at this point in the history
  • Loading branch information
isofarro committed Apr 18, 2009
1 parent 9b99d33 commit d23d4e8
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
11 changes: 10 additions & 1 deletion debug.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ body {
}

#content, #related {
height: 96px;
height: 256px;
background-color: #ddd;
}

#content.grid-container {
height: 266px;
}

.unit {
height: 48px;
background-color: #0099cc;
}
19 changes: 19 additions & 0 deletions grid.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/****************************************************************************
*
* Grid layout
*
****************************************************************************/

.grid-container {
margin: 0;
}

#content.grid-container {
margin: 0;
width: 650px;
}

.unit {
overflow: hidden;
}

16 changes: 15 additions & 1 deletion template.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,28 @@
<meta name="keywords" content="">
<link rel="stylesheet" type="text/css" href="reset.css" media="screen">
<link rel="stylesheet" type="text/css" href="layout.css" media="screen">
<link rel="stylesheet" type="text/css" href="grid.css" media="screen">

<link rel="stylesheet" type="text/css" href="debug.css" media="screen">
</head>
<body>

<div id="page">
<div id="header">Header</div>
<div id="content">Main content</div>
<div id="content" class="grid-container">
<!-- Start of main content -->

<div class="unit">

</div>

<div class="unit">

</div>

Main content
<!-- End of main content -->
</div>
<div id="related">Sidebar</div>
<div id="footer">Footer</div>
</div>
Expand Down

0 comments on commit d23d4e8

Please sign in to comment.