November 13, 2008
We've already talked about Divider between Posts in Blogger. Now, we're gonna make a divider in our Sidebar, which will separate elements, and distinguish them.
There are two options here:
- we can customize the existing divider (border) in Blogger, which, in fact, is the LINE (border)
- or we can place our own custom image (picture) as a divider
OUR CUSTOM IMAGE (PICTURE) AS A DIVIDER
First, you should have picture that you want to use as a divider. It can be anything, create one yourself, download from web.....(a flower, some lines, spoon....whatever you like).
You should take care of dimensions. Picture has to be the same width (better a little bit less) as your Sidebar section (so it doesn't get cropped).
Upload your picture on a free web host like Photobucket, Picasa, TinyPic...
Ok. You've got the pic. Back up your template, then go to:DASHBOARD --> LAYOUT --> EDIT HTML, using CTRL (Option) + F, find the following part of code:
.sidebar .widget, .main .widget {
border-bottom:1px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 1.5em;
}
...now, we have to split that code in 2 parts, so it will look lake this:border-bottom:1px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 1.5em;
}
.main .widget {
border-bottom:1px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 1.5em;
}
.sidebar .widget {
border-bottom:1px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 1.5em;
}
...we've just separated ".main .widget" and ".sidebar .widget". Next is adding the picture in the ".sidebar .widget", so it will look like this:border-bottom:1px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 1.5em;
}
.sidebar .widget {
border-bottom:1px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 1.5em;
}
.sidebar .widget {
border-bottom:0px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 50px;
background-image: url(http://i33.tinypic.com/34eq9sl.jpg);
background-position: bottom;
background-repeat: no-repeat;
}
border-bottom:0px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 50px;
background-image: url(http://i33.tinypic.com/34eq9sl.jpg);
background-position: bottom;
background-repeat: no-repeat;
}
- we've added the part in orange, and changed default border to "0px" to make it invisible...
- notice the part in blue: we've also added some "padding" (little bit more than your image height is good)
- in red, you can see the URL of pic used for this tutorial. Replace it with URL of your hosted picture...
NOTE:- tutorial is done in Minima Blogger template, so your code may differ a bit, but the idea is the same
- you can also use this divider if you want....
CUSTOMIZING THE EXISTING DIVIDER (BORDER) IN SIDEBAR
This is much faster. And easier. But also, the result is more simple. All you have to do is to find this part of code in your code section (LAYOUT --> EDIT HTML):
.sidebar .widget, .main .widget {
border-bottom:1px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 1.5em;
}
...and (in orange) change the "styles" of the border (width, type, color). You can check "styles" in article "Borders in Blogger"....border-bottom:1px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 1.5em;
}
Smile!

















25 comments:
i wonder why this isn't working for me? it did separate the main widget from the sidebar widget because my sidebar looked different after i added your code, but would not show my divider pic and i am sure i had it hosted correctly...i love the ideas you come with up...thank you for sharing...i added your name to my sidebar in the hopes that more people will find you...=)
Hey....
Well, I've just tried it on the same type of template you have, and it works...
Do the same thing as I wrote (copy the code from above completely, and just change the URL)...
Maybe you've "lost" some brackets around..."}"
And thanks for your warm support...it really counts.
Smile!
i got both the post dividers and the sidebar dividers to work! i even created my own in picnik - scissors! check 'em out if you like and thank you...=)
It worked! but...I still have my dotted divider in there also, what did i do wrong?
Great tut! I'm on a roll!
hugz
I to the "dotted" out of the code above, it went away! :) On to the next great tut!!
THANK YOU!!
Hey Deb...
Just find these lines in the code:
.sidebar .widget, .main .widget {
border-bottom:1px dotted $bordercolor;
...and change 1px into 0px. Save Template.
I love your Blogs!
Smile!
pocket, how should i put a vertical divider separating my sidebar from my main blog posts??? :-/
Lorenz,
you have 2 choices.
The simple one is to add a border either to your sidebar, or post area. Here's the example for the sidebar:
► add the border-left line in your sidebar section:
#sidebar-wrapper {
border-left:1px solid #FFFFFF;
...you can change the style of it of course...
Other option, which is a bit more complicated, is to make a background picture for your outer wrapper, and set it to repeat vertically...
You'll have to figure it out yourself, to fit it into your template...
...
can you tell me how to make a divider line (or a great box like you have) for each comment? All of my comments are running together
Thanks
~TidyMom
Wonderful, works for me. I tried the image border.Simple & fast. My blog looks a bit more cleaner now.
You can visit my blog to check the result :
www.basisfaqs.blogspot.com
Thank you - works for me! I've picked up so many great tips over the last couple of days that I almost feel like I know what I'm doing when it comes to manipulating HTML. Thank you so much!
Awesome! Thanks so much!
Any suggestions on getting some space between my vertical line and sidebar-left (Using blogspot Minima lefty stretch with a left and a right sidebar)
Tried pasting this:
#new-sidebar-wrapper .sidebar .widget {
margin-left:1em;
}
above this:
.sidebar .widget, .main .widget {
border-bottom:1px dotted $bordercolor;
margin:0 0 1.5em;
padding:0 0 1.5em;
}
and adjusting the 1em to 1.1, etc. as suggested by someone in a help forum, but this did absolutely nothing to my page. Nor did adjusting the padding.
What am I overlooking? I'm very new to html code, so please keep that in mind when answering. Thanks so much!
hello.. i just use ur tutorial on my page. awesome! i like it! and i suggest to my friend ur page!
this is excellent! I just did this and it worked, yay! thank you :-)
love, love, love this tip! made all the difference in the world on my blog.
thanks for making it so easy!
hey, it worked my first try -- thanks so much!
Hi I happen to stumble into you tutorial site. I must say its great to have you around helping us newbies. Now to my problem if you check my blogg mygardenofcards.blogspot.com and look at my post divider there is this white background I would like to get rid. Could you please tell me what to do? Thank you so much for sharing.
Oh sorry I forgot to tell you that the post divider is animated and the loanmower is going back and forth but not in my blogg. I saved it first in my computer and uploaded it to flickr and copied the divider address and pasted it in my html code but it is not working as it should be. Thank a lot again.
Simply awesome. thanks :)
It didn't work for my blog..
There is no image appear & i already check the coding..
Nothing wrong with it
how can I get the divider line at the bottom of the footer widgets? It seems like it should be easy, but I can't seem to figure it out! Thanks!
Jenny,
same thing as here, only you'll have to place the style under the appropriate footer ID...
Foe example, to place it in sidebar you'll locate ".sidebar .widget {".
Now, you have to figure it out for the footer...
i like ur style...tq 4 info..tata
i have try ur tutoril but doesnt work on my blog..can u help me?
Say it...