Skip to content

Instantly share code, notes, and snippets.

@oslego
Created July 30, 2009 15:02
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 oslego/158731 to your computer and use it in GitHub Desktop.
Save oslego/158731 to your computer and use it in GitHub Desktop.
A simple CSS layout grid that suits liquid layouts
.grid_container{
position:relative;
width:100%;
}
.grid_half{
width:50%;
float:left;
}
.grid_third{
width:33%;
float:left;
}
.grid_quarter{
float:left;
width:25%;
}
.grid_last{
float:right;
clear:right;
}
.grid_first{
float:left;
clear:left;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment