Yes, the Superposition Kitty website has been turned on its head. Black is White! White is Black! And … that’s about it. A code cleanup was long due, and while I was at it I changed a few things around. Most importantly, I cleaned up the CSS, stripping it of a third of it’s weight in the process and hopefully speeding up load times.
Unfortunately, a few of the tutorial posts are now slightly outdated. I will be updating them in the coming weeks to comply with the new theme and changes in code.
I’d like to thank 1KB CSS Grid for the base grid used in the new code. I’d messed around with various grids — such as 960.gs — before, but found them almost universally bloated in the effort to provide for every eventuality. 1KB Grid is tiny and neat and much more elegant than the system I had come up with previously. The grid now looks something like this:
.grid_1 { width:222px; }
.grid_2 { width:462px; }
.grid_3 { width:702px; }
.grid_4 { width:942px; }
.column {
margin:0 9px;
overflow:hidden;
float:left;
display:inline;
}
.row {
width:960px;
margin:0 auto;
overflow:hidden;
}
.row .row {
margin:0 -9px;
width:auto;
display:inline-block;
}
And the corresponding HTML is simply:
<div class="row"> <div class="column grid_2"> </div> <div class="column grid_1"> </div> <div class="column grid_1"> </div> </div>
This sets up the nicely formatted 3 columns that you are seeing here, and provides a clean base to continue to compose to a horizontal baseline. It’s also simple to nest the columns within each-other as seen here.
WIth this new system I should be able to change up any part of the design with a minimum of fuss (and code) whenever needed.