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
#page{
width:90%;
/*width: 900px;*/
margin: 0 auto 0 auto;
padding: 0 0 10px 0;
}
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.
#menu {
width:395px;
border-left: 1px dotted #999;
margin-bottom:8px;
float:right;
}
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.
#content {
margin: 15px -400px 8px 0 ;
width:100%;
float:left;
}
#blogText{
margin-right: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:
<cfoutput><div style="float:left;width:50%;"></cfoutput>
Then a closing div and a clearing dov so that any further content would be laid out correctly.
<cfoutput></div><div style="clear:both;"></div></cfoutput>
Finally I put a close / open div float right in the loops for displaying the pods.
<cfoutput><cfif pod eq int(arraylen(podlist)/2)+1></div><div style="float:right;width:50%;"></cfif></cfoutput>
Or for no meta data:
<cfoutput><cfif pod eq int(Pods.recordcount/2)+1></div><div style="float:right;width:50%;"></cfif></cfoutput>
You can see the end result
css and download the completed getpods.cfm from thelink at the bottom.
There are no comments for this entry.
[Add Comment]