The Minima template is the easiest Blogger template to customise, as this is the simplest two column template, and has few parameters regarding margins, padding and the like. Once you have developed the third column, it will then be easier to alter font-size, colours and such so leave this until later on. We're going to concentrate on the actual layout first.
First of all, set your template to Minima (not the stretch template, but any colour will do!), then follow these instructions:
- Go to Template>Edit HTML, leaving the "Expand widget templates" box unchecked.
- Now, find this section in the HTML code:
#sidebar-wrapper { width: 220px; float: right; 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 */ }
Copy this entire section, and paste it directly below. We're going to change the elements I've highlighted in red to the following:#left-sidebar-wrapper (this makes the css for this section unique) float: left (this will make the new sidebar float to the left of the main column)
This will provide the styling for the new sidebar element which we will create next. - Now, you need to find this section further down the page:
Immedietly before this section, you should paste the following piece of code:
Let me explain the elements of this code to help you understand what we've just done:- This section tells the browser that the left-sidebar element exists here, and to look in the css for the appropriate styling for this element.
- This tells the browser the class of the sidebar element and all other elements (widgets) which may be included in this section. The ID of this element must be "left-sidebar" in order to make it unique, otherwie this would cause problems when viewing. It is preferred so that it will feature in the layout, even if no widgets are placed within it.
- If you preview your template, you will notice that the right sidebar will be beneath the main section at the moment. This is because the outer-wrapper is still only wide enough to accomodate one sidebar. So now we need to expand the oputer wrapper to accomodate this new sidebar. Find this section in the HTML code:
/* Outer-Wrapper ----------------------------------------------- */ #outer-wrapper { width: 660px; margin:0 auto; padding:10px; text-align:left; font: $bodyfont; }
We need to increase the width of the wrapper by the width of the left-sidebar-wrapper, in this case 220px. So, change the value in red to 880px. - You may also want to change the width of the header-wrapper to 880px so that it spans the new width of your blog:
#header-wrapper { width:880px; margin:0 auto 10px; border:1px solid $bordercolor; }
- At this point, you should save your template. At present, your new sidebar will not be seen as there are no widgets contained within it, though it will still be present in the markup of the page. Once you have saved your template, go to Template>Page elements in your Blogger dashboard.
- Your layouts section should now look something like this:
You can now add a page element (or two) to your new left sidebar.
- But we aren't quite finished yet! If you add anything to this left sidebar, you will probably notice that it jams right up to the main section, like this:
This is because there is no space defined between the left-sidebar and the main section. We need to create this space in the template's HTML. To do this, we will add a margin to the left hand side of the main posts section. Find the following code in your template's HTML and add the code defined in red:
#main-wrapper { width: 410px; float: left; margin-left: 20px; 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 */ }
This defines a margin space of 20px between the left-sidebar and the main column. You should also ensure you adjust thw width of the outer-wrapper from 880px to 900px to ensure the width of your blog is enough to accomodate this margin too. Either that, or you could reduce the width of your main column/a sidebar by 20px to serve the same purpose. Now, your previewed template should look more like this: - Finally, save your template and enjoy your new sidebar!
The same principles described here can help you create a three column template from any Blogger template, though you may find that you'll need to adjust the width, margins and padding for your new sidebar in order for it to look the way you would like.
Also, you can configure your new sidebar to float to the right, and have two sidebars on the right of the main column if you prefer. Simply set the CSS of your new sidebar to float: right; instead.
Written by bloggerbuster on Jul-17-07 4:01am/16/2007 21:01 GMT
[+/-] show/hide this post
Daryl Lorette 12p · 906 weeks ago
eddy · 906 weeks ago
I really like the content you provide in the web page.
But you can do more with your web page spice up your page, don't stop providing the simple page you can provide more features like forums, polls, CMS,contact forms and many more features.
Convert your blog "yourname.blogspot.com" to www.yourname.com completely free.
free Blog services provide only simple blogs but we can provide free website for you where you can provide multiple services or features rather than only simple blog.
Become proud owner of the own site and have your presence in the cyber space.
we provide you free website+ free web hosting + list of your choice of scripts like(blog scripts,CMS scripts, forums scripts and may scripts) all the above services are absolutely free.
The list of services we provide are
1. Complete free services no hidden cost
2. Free websites like www.YourName.com
3. Multiple free websites also provided
4. Free webspace of1000 Mb / 1 Gb
5. Unlimited email ids for your website like (info@yoursite.com, contact@yoursite.com)
6. PHP 4.x
7. MYSQL (Unlimited databases)
8. Unlimited Bandwidth
9. Hundreds of Free scripts to install in your website (like Blog scripts, Forum scripts and many CMS scripts)
10. We install extra scripts on request
11. Hundreds of free templates to select
12. Technical support by email
Have nice day!
Get free website for your blog
wayne 1p · 906 weeks ago
web-businesses maybe you should have a look at my blog :)
Nomadicwade 1p · 906 weeks ago
donssite · 906 weeks ago
Thanks,
donssite.com learning to liftright.net at ezee.ca
Daryl Lorette 12p · 906 weeks ago
WishNoize · 906 weeks ago
Anchor text : Pas Society
Url : http://pasers.blogspot.com
akmalrizali 1p · 905 weeks ago
emma53 · 905 weeks ago
WebDiggin 1p · 904 weeks ago
WebDiggin 1p · 904 weeks ago
Blue Licorice · 902 weeks ago
desperateblogger · 899 weeks ago
Jenny 0p · 898 weeks ago
Lena · 897 weeks ago
DzeeShah · 895 weeks ago
Asep Rohman 0p · 890 weeks ago
J | Medical Lab Coat · 838 weeks ago
EasyMakesMoney · 825 weeks ago
sahoo79ngrh 1p · 779 weeks ago
sahoo79ngrh 1p · 779 weeks ago
Dave · 762 weeks ago
please add me to yours, thanks!
tomy blog · 735 weeks ago
alliv · 247 weeks ago