NOTICE:
If you want to use a 3 column or a wider 2 column conversion for the following templates, please email me.

Rounders, Rounders2, Rounders3, Rounders4, Son of Moto, Ms Moto, Scribe and Dots.

I am in the process of updating the image hosting location and the URLs in those guides will change. Therefore DO NOT follow those tutorials without letting me know.

Thanks,
-ids

Thursday, November 13, 2008

Rounders 2 with a wider post area

Article Series: Wider 2 Column Templates - Step by Step Guides

Here are the steps to increase the width of the main post area of the Rounders 2 template by a desired amount. This is useful if you frequently upload images/embed videos etc that are wider than the default width of the post column. (For other Rounders templates, check the series home given above)

The Rounders 2 template uses images for the rounded header, footer and borders of the main post area. We need to expand these images when increasing the width of the post area. This tutorial uses custom images hosted on The Blogger Guide companion web site. (Note: The images used by templates must be hosted online.)

1) Decide the amount of pixels by which you want to increase the width of the post area. In this article, I will be expanding it by 240 pixels. (Note: You need background images that are expanded by the same size as the amount of pixels by which you expand your template. The steps here will only work for an expansion of 240 pixels)

2) Increase the width of the post area and its background images

  • Go to Layout -> Edit HTML
  • Locate the #main-wrap1 CSS selector (Do a Find using your browser)
  • Increase its width property by adding the amount of pixels picked in step (1). Here we change it to 725 by adding 240 to the default width of 485 pixels
  • Change the URL of the background property to the one shown in red below
#main-wrap1 {
width:725px;
float:$startSide;
background:$mainBgColor url("http://thebloggerguide.googlepages.com/rounders2_corners_main_bot_w.gif") no-repeat $startSide bottom;
margin:15px 0 0;
...
}
  • Locate the #main-wrap2 CSS selector
  • Change the URL of the background property to the one shown in red below
#main-wrap2 {
float:$startSide;
width:100%;
background:url("http://thebloggerguide.googlepages.com/rounders2_corners_main_top_w.gif") no-repeat $startSide top;
padding:10px 0 0;
}
  • Locate the #main CSS selector
  • Increase its width property to 725
  • Change the URL of the background property to the one shown in red below
#main {
background:url("http://thebloggerguide.googlepages.com/rounders2_rails_main_w.gif") repeat-y left;
padding:0;
width:725px;
}
  • Locate the following CSS selectors and change their width properties as shown in red below.
.main .widget {
margin-top: 4px;
width: 708px;
padding: 0 13px;
}

.main .Blog {
margin: 0;
padding: 0;
width: 724px;
}

3) Increase the width of the other wrappers to accommodate the expanded main wrapper.
  • Locate the CSS section called #outer-wrapper
  • Increase its width property by the same amount of pixels selected in step (1)
#outer-wrapper {
width: 980px;
margin: 0 auto;
...
}

4) Replace the other background images with expanded ones as necessary.
  • Locate the following CSS selectors.
  • Replace the URLs of the images to the ones shown in red below.
#header-wrapper {
background:url("http://thebloggerguide.googlepages.com/rounders2_corners_cap_top_w.gif") no-repeat $startSide top;
...
}

#header {
background:url("http://thebloggerguide.googlepages.com/rounders2_corners_cap_bot_w.gif") no-repeat $startSide bottom;
...
}

#footer-wrap2 {
background:$titleBgColor url("http://thebloggerguide.googlepages.com/rounders2_corners_cap_top_w.gif") no-repeat $startSide top;
color:$titleTextColor;
}

#footer {
background:url("http://thebloggerguide.googlepages.com/rounders2_corners_cap_bot_w.gif") no-repeat $startSide bottom;
padding:8px 15px;
}

Note: You are free to use the images provided by me. But if you change your template according to this tutorial and use those images, please do a post in your blog linking to this article.

That's it! Click SAVE TEMPLATE and you should now have more room to play around with, in your main post area.

5 comments:

Wynn Williamson said...

Thanks for the post. I would like to make the sidebar a little bit wider - 20px. I've been trying to use your code but I can't seem to figure it out. Could you help? Very much appreciated!!!!!!!

St. Thomas Youth Group said...

thank you!!! this helped me tremendously, I've been trying to figure out how to do this for awhile but don't know how to do complicate things like this in html yet.

martin said...

Thanks so much for sharing your knowldge of the dark arts! Im a High School business teacher in Hong Kong, and this was just what I wanted: it works perfectly!

rgds
Martin hartnett
www.ibbam.blogspot.com

Pushkar said...

Your tips work like a charm. Very useful site for all blogspot based users. Will return for more interesting stuff.

Javier Nixon said...

hey, i just changed the sizes, but the borders are like they didn't change... how do i fix this?

Post a Comment

Thanks in advance for all your comments and suggestions. They are very much appreciated.

IMPORTANT:
If you have a specific technical question, please email me with a description of the problem and the blog's URL.