Three Column Blogger: Three Column Denim

Monday, September 8, 2008

Three Column Denim

These instructions for adding a third column to Denim will have you up and running with a three column Denim template in no time at all. Adding a third column to Denim is pretty straightforward, especially if you follow these easy instructions. Denim is a popular Blogger template, and it's also pretty easy to convert into a three column layout.

These instructions are simple and easy, and you can do it if you don't know the first thing about HTML.

First, open up Blogger and go into your Dashboard, then click on the "Layout" tab. Then go into the "Edit HTML" tab. You will see a bunch of gobbledygook and gobbledygook it shall remain - you don't need to know anything about it. Just scroll down (or, allow me to introduce your browser's control F (CTRL+F) command, you can just type in /* Header and click next) until you see this:

/* Header
-----------------------------------------------

Now, change the width of the "header" from 760 to 940:

#header {
width:760px; <-------change to 940
margin: 0 auto;
background-color: $headerBgColor;
border: 1px solid $headerBgColor;
color: $headerTextColor;
padding: 0;
font: $headerFont;
}


That piece of code should now look EXACTLY like this:

#header {
width:940px;
margin: 0 auto;
background-color: $headerBgColor;
border: 1px solid $headerBgColor;
color: $headerTextColor;
padding: 0;
font: $headerFont;
}

So far so good. Next, scroll down (or use CTRL+F) to where it says:

/* Content
----------------------------------------------- */

Now, just like you did in the "header" above, change the "content-wrapper" width from 760 to 940, (2) change the "main-wrapper" width from 464 to 500, and (3) change the width of the "sidebar-wrapper" from 240 to 192:

#content-wrapper {
width: 760px; <-------change to 940
margin: 0 auto;
padding: 0 0 15px;
text-align: $startSide;
background-color: $mainBgColor;
border: 1px solid $borderColor;
border-top: 0;
}

#main-wrapper {
margin-$startSide: 14px;
width: 464px; <-------change to 500
float: $startSide;
background-color: $mainBgColor;
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 */
}

#sidebar-wrapper {
margin-$endSide: 14px;
width: 240px; <-------change to 192
float: $startSide;
background-color: $mainBgColor;
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 */
}

Next, take this new block of code (in red) and paste it in exactly as it appears directly in between the "content-wrapper" code and "main-wrapper" code. It's helpful to use "CTRL C" to copy, and then "CTRL V" to paste, if you didn't already know that trick. Regardless of how you do it, you must paste it in between these two code blocks, nowhere else.


#left-sidebar-wrapper {
margin-$endSide: 14px;
width: 192px;
float: $startSide;
background-color: $mainBgColor;
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 */
}

The new code block should look exactly like this:


#content-wrapper {
margin-$endSide: 14px;
width:
940px;
float: $startSide;
background-color: $mainBgColor;
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 */
}

#left-sidebar-wrapper {
margin-$endSide: 14px;
width: 192px;
float: $startSide;
background-color: $mainBgColor;
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 */
}

#main-wrapper {
margin-$startSide: 14px;
width:
500px;
float: $startSide;
background-color: $mainBgColor;
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 */
}

#sidebar-wrapper {
margin-$endSide: 14px;
width:
192px;
float: $startSide;
background-color: $mainBgColor;
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 */
}

At this point, believe it or not, there is only one more step. This particular step is hard only because you need to make sure you paste the additional code in the right spot, and this next spot can be a hard place to identify (CTRL+F helps here a lot).

Anyway, scroll down (or use control F) to the " */ Footer " section, and the scroll a little further until you see:


<div id='content-wrapper'>

Then, locate the the "main wrapper" id a few lines below it. It looks like this:


<div id='main-wrapper'>

Now, just above the "main wrapper" id, paste in the following code EXACTLY as it appears:


<div id='left-sidebar-wrapper'>
<b:section class='sidebar' id='left-sidebar' preferred='yes'>
<b:widget id='Subscribe1' locked='false' title='Subscribe' type='Subscribe'/>
</b:section>
</div>

Note: this will also insert the RSS feed widget into your sidebar, but you can customize that however you'd like when you finish using the Layout tab. For now, there's no need to worry about it. So, after you do that, the newly modified section should now look like this:


<div id='content-wrapper'>

<div id='crosscol-wrapper' style='text-align:center'>
<b:section class='crosscol' id='crosscol' showaddelement='no'/>
</div>

<div id='left-sidebar-wrapper'>
<b:section class='sidebar' id='left-sidebar' preferred='yes'>
<b:widget id='Subscribe1' locked='false' title='Subscribe' type='Subscribe'/>
</b:section>
</div>


<div id='main-wrapper'>


And you are a now master Denim coder, because you're done! Hit preview to see your new three column blogger layout, and then save the template. Go into layouts and add a google gadget, or a widget, of your choice. If you'd like to adjust your margins, go to Adjusting Margins For Three Column Denim.

Best of luck with your blogging. Links to this post are always welcome. If you would like to create a quick link in one of your posts or on your blogroll but are unsure how to do it, just insert this html string in your post text:

</a href="http://www.threecolumnblogger.com/">Three Column Blogger</a>


It will appear in your post text/blogroll as Three Column Blogger

Thanks!!

Labels: ,

Stumble Upon Toolbar Bookmark and Share




43 Comments:

Blogger heather-in-italia said...

Thanks a million for posting these instructions! My blog looks a whole lot better now. :)

September 17, 2008 8:42 AM  
Blogger REIT Wrecks said...

This post has been removed by the author.

September 17, 2008 9:37 AM  
OpenID thephoenix613 said...

wow! Thanks!

September 18, 2008 6:48 PM  
Blogger Melnar Tilromen said...

This is great, I'm trier this right now.
BUT!!!
After this I can't insert a picture to replace background of the header.
What I must do to remove this problem?

September 20, 2008 3:30 PM  
Blogger RW said...

Melnar, I looked at both your blogs. Your 3 column blog looked perfect. I'm assuming you fixed whatever problem you were having after posting your comment. If not, post the url of the blog you're having trouble with and I'll take a look. Cheers, RW

September 22, 2008 6:30 PM  
Blogger Melnar Tilromen said...

RW, thank you!
I had found the reason of mistake!
That was because I have tried a lot of templates before, and in my code, perhaps, was too muh garbage because of this.
I pressed "Revert widget templates to default" and after this everything was clear!

Your code works great!
Thank you wery much!
Good luck!

September 23, 2008 2:54 PM  
Blogger RW said...

Excellent! I'm glad. Thank you for letting me know it worked out.

September 24, 2008 7:01 AM  
Blogger HansThane said...

thank you very much for this! just what i needed. :))

October 15, 2008 10:14 AM  
Blogger Erik said...

Awesome!!! Could not have been easier.

November 21, 2008 5:53 AM  
Blogger Rhona Florentino said...

thank you very very mch! I just started a new blog and your insructions were very very useful in making it a 3-column one

November 22, 2008 10:46 PM  
Blogger RW said...

This post has been removed by the author.

November 29, 2008 12:25 AM  
Blogger SUZAIRHE SUMARI said...

RW,

I NEED YOUR HELP URGENTLY.

Couple of days ago, i managed to
change my layout to 3 columns.

And its fishy when i dun get any post/comments from friends etc.

To my shock, when i try to post a comment to my own blog, i can't even do it. There's no link to a comment box.

And i can't reply to any comments.

Please help me.

If u wanna take a look at the entire HTML code, i would love to show u.

Its best if i can email u.

PLease help me.
Its URGENT.



Suzairhe Sumari,
http://suzairhesumari.blogspot.com

December 2, 2008 8:29 AM  
Blogger RW said...

suzairhe, just save your existing code to notepad and switch to with Denim of Minima; both are easy to modify into a three column templates, add images, and widgets. It will take you some time to get the widgets back in, but that will get you up and running in the shortest time possible. If you want to experiment later with a more exotic template, you can always do that.

BTW, I don't tell people to save their existing templates before attempting to modify them because I assume nobody would attempt it otherwise. Accordingly, just this once, remember save your damn template before you screw with it!

December 2, 2008 11:45 AM  
Blogger SUZAIRHE SUMARI said...

HI RW,

I did change the whole template.
Back to basic.
Follow all instructions that u'd told me - including the step by step on how to create the 3 column using MINIMA template.

Cool. Everything's fine now.
BUT...

The POST COMMENT thingy still doesn't work.

Why is that so? I'm puzzled and in the midst of giving up.

Try to enable all comment buttons but no positive answer.

Please help.

:/

December 3, 2008 7:50 PM  
Blogger RW said...

I really don't know why that could be. There a great resources on Blogger help and Google groups, you should try them for help, but don't jump off a bridge or anything if you can't figure it out, it's only a blog!

December 3, 2008 10:02 PM  
Anonymous Anonymous said...

OH GOOD GRIEF!!! I tried uploading several different 3-column blogger templates and none worked! I reverted to classic and uploaded and still nothing. I even spent over an hour with another guys instructions on how to convert to 3-column and it didn't work! THANK YOU SOOO MUCH FOR MAKING IT SOOO EASY!! ANYONE CAN DO THIS REALLY!! YOU ARE A LIFE-SAVER...I MEAN "BLOG-SAVER!" lol

December 13, 2008 10:53 PM  
Blogger Leah said...

I agree - I tried a bunch of tutorials with no luck before now. Thanks for the VERY EASY, CLEAR help! I really appreciate it.

January 10, 2009 1:22 PM  
Blogger Dennis said...

THANK YOU!!! this was exactly what I needed! you can check my blog for the result

January 17, 2009 7:21 AM  
Blogger RW said...

Thanks everyone for the great comments, encouragement and support. Please link to this post/blog if you get the chance.

Cheers!

January 19, 2009 10:18 AM  
Blogger Hip Mom's Guide said...

These instructions are great. Thank you so much! I created a "test" blog to try this out before messing with my own, and it looks great. The only thing I can't figure out is the header. I change mine often, and usually upload images from freewebheaders. Their images are set at 800 x 200. Since the 3-column header is 940 pixels, you see the problem, right? I can figure out how to center the 800 pixel image, but it still doesn't look right. Any suggestions on 1) how to stretch an image? (impossible?), 2) where to find wider images?, or 3) a way to make the entire layout a little more narrow? Would the latter work? Do you think it would be too cramped?

February 12, 2009 2:33 PM  
Blogger Gabriel Boray said...

This info is very overdue, thank you for your time, amazing, easy, best out there, I'm testing various configurations, keep it up,
Gabriel

February 13, 2009 7:10 PM  
Blogger Terence said...

genius....
seriously, you really save my time and work trying to find out those useless templates out there.
Modifying rocks!

February 19, 2009 1:46 PM  
Anonymous Franso said...

Thank you very much. I am now able to advertise more jobs for my clients at

March 25, 2009 7:07 AM  
Blogger Nazmy said...

Thx 4 the tips Boss... finally i can change my blog into 3 columns...

nazmy88 frm Indonesia
http://nazmy88.blogspot.com

May 15, 2009 10:35 PM  
Blogger RW said...

Hip Mom - sorry for taking so long to get back to you. You can reduce the size of the whole blog to fit your free header image, but that's like the tail wagging the dog. Plus three columns at 800px would mean a tiny main column and two ridiculously small columns. It's easy to resize images in photo shop, so that's what I would do. Note that the image probably won't fit if it is exactly 940 pixels wide, you may need to use 930.

Nazmy: Kembali!

Good luck to all and thanks for the comments (links are great too)

Cheers!

June 5, 2009 5:17 PM  
Blogger PekanbaruPort said...

sir, why can't i change the "content-wrapper left-sidebar-wrapper main-wrapper sidebar-wrapper" thing(the first code you've shown above).it says
Variable used but not defined. Input: endSide
sorry my english.i'm indos
http://pekanbaruport.blogspot.com

June 9, 2009 11:41 AM  
Blogger PekanbaruPort said...

btw im using denimlight template

June 9, 2009 11:43 AM  
Blogger LittleHeaven said...

thanks you so much :)

June 11, 2009 5:49 AM  
Blogger RW said...

PekanbaruPort - you must be EXACT. The code in the post is $endSide, not endSide. If you use $endSide, you will get it!

Sampai jumpa lagi!

June 17, 2009 4:00 PM  
Anonymous Canadiandebtwiper said...

thanks for this post, it worked perfectly.

http://canadiandebtwiper.blogspot.com

June 30, 2009 10:48 AM  
Anonymous sirish said...

hi thanks alot for giving valuable information about three column templates.....

July 8, 2009 6:29 AM  
Blogger Meg said...

Thank you so much for your help! I can't believe how easy it was! I was thinking I had to spend $15 a month with Typepad to get this look! I didn't! I love it! Please stop by and take a look! I have the Washed Denim template and followed the instructions for your Denim tutorial. It's just what I wanted!

Thank you!
Meg In The Kitchen

July 21, 2009 10:45 AM  
Blogger Titus said...

Hi!

I like it is very useful to me.

Thanks a lot.

For mor info about SEO tips, Visit my blog.

by,
Tips of Collective Web Experience for Blogging Sites!
Cine Indians

August 23, 2009 11:31 PM  
Blogger Kathleen Dalseno said...

Thank you very much for such clear instructions. Here's what I did with mine, through your help:
http://craftymissusd.blogspot.com/

September 28, 2009 11:15 PM  
Blogger Audrey Welborn said...

I want to add a third column to denim and have read your instructions, but my template uses percentages, not pixels. Please help.

September 30, 2009 10:28 AM  
Blogger .jsc. said...

I did it and it came out purfectly fine just that my banner is not centered anymore how can i fix that ?

November 11, 2009 2:18 PM  
Blogger THERÉSE ON FIRE! said...

Excellent tutorial, RW! What do I change to make the new column appear on the right next to my other column? Thanks x

November 28, 2009 3:36 PM  
Blogger RW said...

Audrey, you are using a fluid width template (percentages), and this tutorial is for fixed width templates (in pixels). The next step here is to have tutorials for both fixed width and fluid width!

Cheers, RW

November 29, 2009 1:26 AM  
Blogger RW said...

THERESE ON FIRE! It's simple, just change the float settings on your columns. Read the post on Three Column Minima with Two Columns on the Right for help.

Cheers, RW

November 29, 2009 1:29 AM  
Blogger Babygirlz Magazine said...

This was absolutely wonderful of you to do! Thanks so much for passing the knowledge on in such easy-to-follow instructions. I sincerely appreciate it and my blog now feels wonderful!!!

November 29, 2009 11:09 AM  
Blogger Jacqueline said...

Thanks a zillion for posting all the fantastic tutorials. Such clearly defined steps that were a breeze to comprehend and follow.
With grateful thanks, I've credited back to your site by linking from both of my blogs at http://jacqsbloggertips.blogspot.com/2009/12/create-three-column-blogger-blog.html and http://peacockflower.blogspot.com/2009/12/new-3-column-blogger-blog.html
Thanks again and God bless!

December 9, 2009 2:07 AM  
Blogger Jackie said...

Can I just say how much I love you?! I've been struggling with this SO much. I'm a totally low tech person. I had managed to get 3 columns on my blog but the sidebars were on the same side. Then I found the word denim in my HTML and then found the same word in your post. Thank you SO much!

January 1, 2010 9:31 AM  
Anonymous Internet Jobs said...

i m also using 3 cloum denium on my blog.

January 25, 2010 8:00 AM  

Post a Comment

<< Home