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:
Then, locate the the "main wrapper" id a few lines below it. It looks like this:
Now, just above the "main wrapper" id, paste in the following code EXACTLY as it appears:
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:
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:
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>
<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'>
<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: 3 Column Blogs, Three Column Denim

49 Comments:
Thanks a million for posting these instructions! My blog looks a whole lot better now. :)
This post has been removed by the author.
wow! Thanks!
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?
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
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!
Excellent! I'm glad. Thank you for letting me know it worked out.
thank you very much for this! just what i needed. :))
Awesome!!! Could not have been easier.
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
This post has been removed by the author.
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
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!
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.
:/
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!
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
I agree - I tried a bunch of tutorials with no luck before now. Thanks for the VERY EASY, CLEAR help! I really appreciate it.
THANK YOU!!! this was exactly what I needed! you can check my blog for the result
Thanks everyone for the great comments, encouragement and support. Please link to this post/blog if you get the chance.
Cheers!
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?
This info is very overdue, thank you for your time, amazing, easy, best out there, I'm testing various configurations, keep it up,
Gabriel
genius....
seriously, you really save my time and work trying to find out those useless templates out there.
Modifying rocks!
Thank you very much. I am now able to advertise more jobs for my clients at
Thx 4 the tips Boss... finally i can change my blog into 3 columns...
nazmy88 frm Indonesia
http://nazmy88.blogspot.com
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!
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
btw im using denimlight template
thanks you so much :)
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!
thanks for this post, it worked perfectly.
http://canadiandebtwiper.blogspot.com
hi thanks alot for giving valuable information about three column templates.....
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
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
Thank you very much for such clear instructions. Here's what I did with mine, through your help:
http://craftymissusd.blogspot.com/
I want to add a third column to denim and have read your instructions, but my template uses percentages, not pixels. Please help.
Excellent tutorial, RW! What do I change to make the new column appear on the right next to my other column? Thanks x
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
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
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!!!
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!
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!
i m also using 3 cloum denium on my blog.
Thank you SO much!!! You're awesome. I'm the most technically inept person out there and this was easy-peasy!
RW, thank you so much for this tutorial! The only thing I miss is how to add a "top sidebar" that stretch over the two columns. Do you know how to fix that? I would be so grateful. Thanks again. /Therése
I have tried so many ways to get a 3 column similar to the denim style... Thank you! This was so simple. I just had a little bit of a tweaking issue at 1st with my header image but all is good now! Thanks again for such an easy tutorial :)
Thanks a zillion! Big help!
thank you very much!
Thanks for this guide.
This guide helped me.
Post a Comment
<< Home