Two sidebars in blogger -Part 1
One reason I choose the Minima template in blogger is because of it's simplicity and the ease I am able to modify the design. One of the design modifications I made is adding another sidebar.
To get the sidebar in without distorting my header, I first had to add this code to the template. I put it right below the 'header' portion of my CSS sheet.
#header {Note the text in red is if you have an image in your header, which I do. Otherwise, let that part out.
width:660px;
margin:0 auto 10px;
border:1px solid #ccc;
background: #fff url(Your header image if you have one) no-repeat top right;
}
What is a sidebar?
"
This is from the Blogger Help section...Getting more to the point, many bloggers find that a sidebar running down the page parallel to the main blog is a convenient spot to publish a short biography, favorite links, and other relevant information that you want near (but not in) your blog.
"
The next thing that you need to do is add this code to your CSS sheet:
I'm sure there are a million different ways to do this. But this was simple and worked great for me, as you can tell.
/* Sidebar Content
----------------------------------------------- */
#sidebarleft ul {
margin:0 0 1.5em;
padding:0 0 1.5em;
border-bottom:1px dotted #ccc;
list-style:none;
}
#sidebarleft li {
margin:0;
padding:0 0 .25em 15px;
text-indent:-15px;
line-height:1.5em;
}
#sidebarleft p {
color:#666;
line-height:1.5em;
}
#sidebarleft {
width:200px;
float:left;
}
#sidebarright ul {
margin:0 0 1.5em;
padding:0 0 1.5em;
border-bottom:1px dotted #ccc;
list-style:none;
}
#sidebarright li {
margin:0;
padding:0 0 .25em 15px;
text-indent:-15px;
line-height:1.5em;
}
#sidebarright p {
color:#666;
line-height:1.5em;
}
#sidebarright {
width:200px;
float:right;
}
7/12/2006 Please read Two sidebars in blogger- Part 2 for more information on implementing this code.
9 Comments:
Hi there, you have a very useful site here! :) I wish I could find the time to implement all that you've presented here, so I don't have to rely on other people to beautify my blog for me (my present layout was made by someone for me)! *blush*
Cheers!
sharlet, This is something I love doing. Your blog is really well designed. Doesn't make any difference who made it! You would be surprised on what you can do. I haven't worked with WordPress, but I imagine it would be similar to editing the blogger templates. If you ever decide to make changes, copy and paste your entire template in Notepad so you have a backup in case things go bad!
peace...
annie
Hi Annie.
My blog has 1 sidebar right of the main content and an header with an image.
Do you think I can use your code above to push the main content box to the left and create another sidebar on the right of it?
Can you give some tips how to do that?
Tank you very much.
All the best.
Luis J.
@luisj, first save your template, then try the instructions on this post. It should work.
Hi Annie!
I'm trying to get a test blog set up before I make major changes to my real blog. I just added a 3 column, but I want my sidebars to stretch to the top, like this. I think this code does exactly the opposite. Here's my test blog. Can you help?
@Sara, it seems there is no actual 'header'. Instead, there are 3 widgets across the top. The middle one is right above the blog post which is a image widget that acts as the header.
Wow, what a useful site. Thanks! I've learned a lot of things from here.
How do I add this type of side bars into my site as there are only templates on the Internet which doesn't have a side bar on both the sides.
fit flop
thanks to this post finally i have managed to customize my theme. i had few difficulties using my old theme because of issues with side bar. now i have fixed them all..