Wednesday, December 12, 2007

Minima Stretch To Three Column Template Layout

This quick guide will show you how to easily convert Minima Stretch to a three column layout template.

First, make sure your template is Minima Stretch:



Then navigate to Template->Edit HTML and get hacking:



Make room for the additional column by reducing size of #main-wrapper by the size of our new column (67% - 25% = 42%). Also, to get all our floats in a row, change the float and margin spacer from right to left:

#main-wrapper {
margin-left: 2%;
width: 42%;
float: left;
display: inline; /* fix for doubling margin in IE */
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}
Create a new #sidebarLeft-wrapper by copy-and-pasting and then editing #sidebar-wrapper:
#sidebar-wrapper {
margin-right: 2%;
width: 25%;
float: right;
display: inline; /* fix for doubling margin in IE */
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

#sidebarLeft-wrapper {
margin-left: 2%;
width: 25%;
float: left;
display: inline; /* fix for doubling margin in IE */
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}
Finally, we need to add the sidebar left div to activate our third column place the section code in bold just before the main-wrapper:
<div id='sidebarLeft-wrapper'>
<b:section class='sidebar' id='sidebarLeft' preferred='yes'>
</b:section>
</div>

<div id='main-wrapper'>
<b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/>
</b:section>
</div>

<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>
<b:widget id='BlogArchive1' locked='false' title='Blog Archive' type='BlogArchive'/>
<b:widget id='Profile1' locked='false' title='About Me' type='Profile'/>
</b:section>
</div>
Save your edits and then navigate to Template->Page Elements where you will now be able to add page elements to your newly created right column:



You can view a demo of this three column template at http://ms3c.compender.com/

16 comments:

Jennifer said...

I tried this with my minima stretch template and I couldn't get the third column to pop in there. I did exactly what you said(I think) and it still didn't work. Any ideas?
My blog is http://jacksbox4you.blogspot.com
Thanks you for your advice.

baby~amore' said...

i couldn't get it either but on one of minima stretch I did get the third add a page element to bottom right of template - changing for time being back to minima - but how can I shrink the left column a little.I noticed my HTML also says $startSide & $endSide not left & right.
It looks great.

Melissa and Nate said...

Just wanted to say thank you!! I thought this was going to be a long, complicated process, but all it took was a little copying and pasting (and a little tweaking) and it worked. Thank you, thank you, thank you!

Katrina said...

Thanks for these easy instructions! I totally got mine to work and I know pretty much nothing about code.

OCP Advisor said...

Worked like a charm!
Thanks buddy!

Jojo said...

you're a genius....you answered my prayers...I found lots 3 column but not for stretch and my posts were being crunched...thank you so much!!!!

The pale observer said...

wow!!! I know nothing about HTML coding and your instructions were easy and perfect. My blog is now three columns!!!!


THANKS SO MUCH!!!!!!!!!!!

Chinyere Obinna O. said...

Thank you so much. Your instructions were right on the money. I had tried to tweak my blog design using other website instructions, but yours were by far the easiest- cut and paste and bingo. I really thank you. I will try to perfect this first with my test blog, then i will transfer the changes to my blog, http://ourveryownplace.blogspot.com.

Silveredgold said...

Quick Tip Guys: Instead of typing it out yourself, just copy and paste it in and delete the old one!

Have Fun!

Achtung! said...

Thanks for posting this...worked like a charm.

Divyesh &amp; Hitesh said...

It's good templet for blog. so i can use it.
for more information about FESTIVALS log on
www.festivalofworld.blogspot.com

thanks

Pepe said...

Thanks a lot! Now i've turned my blog into a three column one!

rachel whetzel said...

Thanks so much!! Used your instructions with NO problems at all!! Yours is the first step by step that I didn't have to tweak a bit, AND the first one to evenly space my padding so that my posts didn't squish up against one of my sidebars. Thanks!

Ramya Kiran said...

Please help!!

I followed the exact steps that you told but i'm getting an error saying..
"More than one widget was found with id: HTML4. Widget IDs should be unique"

What might be the mistake? please help:(

Mimi said...

Thanks for this article. I tried it on my blog and this worked. What i do is have a backup first of my original layout. Then i temporarily removed my other gadgets to retain only the About me/Profile gadget. Choose minima stretch layout and exactly follow the procedure. Then after I had the 3 column layout I restored the Gadgets i removed temporarily.

http://www.mimicup.blogspot.com

leo7_lion said...

Thanks very much!!!!!!!!!!!!!! I finally get my things done^^ Currently updating to a better side^^ visit if you're interest to see^^

Post a Comment