Skip to content

Instantly share code, notes, and snippets.

@camslice
Created February 11, 2011 07:42
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save camslice/822044 to your computer and use it in GitHub Desktop.
Stack Layout CSS
.stack
.stack1of2
.stack1of3
.stack2of3
.stack1of4
.stack3of4
.stack1of5
.stack2of5
.stack3of5
.stack4of5
.stackAuto
.stackContent
.stackAuto a.stackContent,
#nav li a
{
margin:10px;
}
.stackAuto,
#nav li
{
padding-top:10px;
padding-bottom:10px;
}
.stackAuto .stackContent,
#nav li a
{
margin:0 10px;
}
.stackAuto a.stackContent,
#nav li a
{
position:relative;
top:-10px;
margin-top:20px;
}
.stack1of2,
.stack1of3,
.stack2of3,
.stack1of4,
.stack3of4,
.stack1of5,
.stack2of5,
.stack3of5,
.stack4of5
{
width:100%;
}
#column1
{
position:relative;
left:25%;
}
#column2
{
position:relative;
left:-75%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment