Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created August 22, 2012 16:22
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 billerickson/3427180 to your computer and use it in GitHub Desktop.
Save billerickson/3427180 to your computer and use it in GitHub Desktop.
<div class="section">
This is the top area, full width
</div>
<div class="section">
<div class="three-fourths first">
This is the middle column's content area. It is 75% wide.
</div>
<div class="one-fourth">
This is the middle column's sidebar. It is 25% wide.
</div>
</div>
<div class="section">
This is the lower section. It is 100% wide.
</div>
.section {
overflow: hidden;
width: 100%;
}
/* Column Classes
* This should already be in your child theme
------------------------------------------------------------ */
.five-sixths,
.four-fifths,
.four-sixths,
.one-fifth,
.one-fourth,
.one-half,
.one-sixth,
.one-third,
.three-fifths,
.three-fourths,
.three-sixths,
.two-fifths,
.two-fourths,
.two-sixths,
.two-thirds {
float: left;
margin: 0 0 20px;
padding-left: 3%;
}
.one-half,
.three-sixths,
.two-fourths {
width: 48%;
}
.one-third,
.two-sixths {
width: 31%;
}
.four-sixths,
.two-thirds {
width: 65%;
}
.one-fourth {
width: 22.5%;
}
.three-fourths {
width: 73.5%;
}
.one-fifth {
width: 17.4%;
}
.two-fifths {
width: 37.8%;
}
.three-fifths {
width: 58.2%;
}
.four-fifths {
width: 78.6%;
}
.one-sixth {
width: 14%;
}
.five-sixths {
width: 82%;
}
.first {
clear: both;
padding-left: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment