Making blogCFC a 3 column layout

I saw a blog the other day and liked the layout. If I remember it I will post it here. It was a full screen, large body area, with two columns for all the associated blog bits like tags, menu, comments and so forth. Its a common layout to see on WordPress and blogger too, […]
October 22, 2007 8:04 am

I saw a blog the other day and liked the layout. If I remember it I will post it here. It was a full screen, large body area, with two columns for all the associated blog bits like tags, menu, comments and so forth. Its a common layout to see on WordPress and blogger too, and I thought I would give it a shot on SixFive. Here is how I did it.

First set your blog to be a variable width, this used to be 900px for me, then I moved it to 90% in the layout.css

Then you need to decide how wide your two information columns should be. 195px is the default in BlogCFC, So I thought the easiest solution would be to double it to 395px.

Staying with the layout.css, we then need to ensure our content doesn’t flow into the newly double sized menu area so change content’s right margin to -400px, and blogText margin to 400px.

Then its just a question of making the pod layout a physical 2 columns. I decided that a simple float combination of 2 divs at 50% width should do the trick, so I added a few divs in /tags/getpods.cfm first an opening div, floating left:

Then a closing div and a clearing dov so that any further content would be laid out correctly.

Could not embed GitHub Gist f2015526: Not Found

Finally I put a close / open div float right in the loops for displaying the pods.

Or for no meta data:

You can see the end result css and download the completed getpods.cfm from thelink at the bottom.

Leave a Comment

Login
Log in below to access your courses.
Log In With Google
Forgot Password
Enter your email address or username and we’ll send you instructions to reset your password.