November 12, 2008
This way, you can make your Blogger XML template Links (Labels and all other links) look nicer. Or not. Depends what you like. So here's what you have to do.
This is an example, and remember, you can add whatever picture you like. Also take this one, if you like it...
We've added the black arrow to our labels to make them distinguish a bit more. First, you have to prepare your picture (icon, image). Choose the one you like, but keep in mind:- keep the pics small size 15 x 15 (px). smaller is also alright ....
- save your pics as ".png" files when you edit them in editor (so they blend with template background)
- you don't have to use " .png" format if the background of icon (picture) is the same color as your template background
- upload your picture to a free web host services (Photobucket, Picasa, TinyPic...)
Ok. Now the codes. Back up your template. Then go to:
DASHBOARD ► LAYOUT ► EDIT HTML ► find the following part of code:
.sidebar ul {
list-style:none;
margin:0 0 0;
padding:0 0 0;
}
.sidebar li {
margin:0;
padding-top:0;
padding-$endSide:0;
padding-bottom:.25em;
padding-$startSide:15px;
text-indent:-15px;
line-height:1.5em;
}
Delete that (all of it), and replace it with this:list-style:none;
margin:0 0 0;
padding:0 0 0;
}
.sidebar li {
margin:0;
padding-top:0;
padding-$endSide:0;
padding-bottom:.25em;
padding-$startSide:15px;
text-indent:-15px;
line-height:1.5em;
}
.sidebar ul {
list-style:none;
margin:0 0 0;
padding:10px 0 0;
}
.sidebar ul li {
background:url("http://i33.tinypic.com/332b6dt.jpg") no-repeat 2px .25em;
margin:0;
padding:0 0 3px 16px;
margin-bottom:2px;
text-indent:7px;
line-height:1.3em;
}
In the orange, you can see a URL of picture used in this tutorial. Just replace the URL address in red with URL of your hosted picture.list-style:none;
margin:0 0 0;
padding:10px 0 0;
}
.sidebar ul li {
background:url("http://i33.tinypic.com/332b6dt.jpg") no-repeat 2px .25em;
margin:0;
padding:0 0 3px 16px;
margin-bottom:2px;
text-indent:7px;
line-height:1.3em;
}
Save Settings. And that's it.
NOTE:
- tutorial is made in Minima Blogger template, your code may be a little different, but the idea is the same (just find the ".sidebar ul" and ".sidebar li" , and replace them with code above)
- these settings doesn't apply for "Archive" widget
- "text-indent:7px;" - you can change the distance between text and icon with this (change 7 into higher to increase distance)
- "line-height:1.3em;" - change the vertical space (line height) between links
- you can add some borders (line) between individual links (border-bottom:1px solid $bordercolor;)
















25 comments:
hei. can you help me. how to make a banner position in the centre of side bar. i copy paste the code but its always appear in the left side. thanks bro
Like this:
<center>your code goes here</center>
Smile!
thanx man!!!!!
hi! thanks for a great page! can i have a different image for each label? how?
Nati,
..I wouldn't know that one.
But, you can make your own Link List using HTML/Javascript, and assign different picture beside each Link.
And then, just Link that Link to the certain label....Sounds weird, but it's simple...
Ok?
Hi,...
I'd like to ask you about putting some banner links to my blog. Well i found some difficulties, see.. I already copy and paste the code, but the banner didn't come out. I use blogger.Would you please help me.. Thanks
T Ivan S,
..sure, I'll help. But you have to tell me what kind of code you're placing there. And where exactly?
Hello!
Novice blogger here. I'm attempting to add multiple pics to my sidebar that also serve as clickable links. In this particular case, I'd like to add CD album covers. The following website is a great example that I would like to duplicate (http://theneedledrop.blogspot.com/). See the six squares on the right that you can click on? How can I do that?! Thanks a million in advance if you can help.
Design the pics (with appropriate size, width and height).
Next, go to LAYOUT ► EDIT HTML ► Add a Gadget ► choose HTML/Javascript
You have to place this part of code for the pic:
<a href="YOUR LINK HERE" target="_blank">
<img src="URL OF THE PIC" border="0" />
</a>
..replacing the CAPS with the appropriate links (first one is the link where the click will lead to, second is the URL of hosted picture from a free web host).
..if you don't want links to open in a new window, remove this:
target="_blank"
If you want more pics, just add this part of code as many times as you want (in the same gadget). Just change the links...
Ok?
Yes! And quite embarrassing in its simplicity.
Is it hard to add hover labels to the images? How would I go about doing that?
Apologies for asking another question. Thanks again!
kth,
..add this line:
title='Your text here'
in the image code:
<img src="URL OF THE PIC" border="0" title='Your text here'/>
You just made a fan for life.
I hope you have a very enjoyable weekend.
This is great but I want different icons for different things. I want the labels to use one icon and links to use a different icon. How can I accomplish this?
Dead widget society,
...basically, you have to create a CSS style for each, with specific list styles.
...identify the widget ID from LAYOUT ► PAGE ELEMENTS, and add a style.
For example, for LABELS, it's Label1, and the style would be:
#Label1 {
}
#Label1 ul {
list-style:none;
margin:0 0 0;
padding:0 0 0;
}
#Label1 li {
margin:0;
padding-top:0;
padding-$endSide:0;
padding-bottom:.25em;
padding-$startSide:15px;
text-indent:-15px;
line-height:1.5em;
}
..the rest is the same...
how can use differents colors for each label?
How to do it for archive ??
Do you like MBT shoes online MBT chapa buy it MBT chapa shoes with MBT lami free MBT lami shoes shipping MBT kaya over MBT kaya shoes us,we MBT M.Walk sell MBT m walk shoes on line mbt men shoes for mbt women shoes and vibram five fingers sale vibram five fingers sale is our discount vibram five fingers best cheap vibram five fingers choice cheap MBT chapa shoes thank cheap MBT lami to cheap MBT lami shoes see cheap MBT kaya it cheap MBT kaya shoes you can cheap MBT M.Walk go cheap MBT m walk shoes by cheap mbt men shoes click cheap mbt women shoes
Help - my comment bubble icon is enormous! I saved it in photobucket at 15x15 and then made a tinyurl for it but it shows up in my blog as the same size regardless of how I resize it in photobucket...
Thanks a million , that's very handy !
.sidebar ul {
list-style:none;
margin:0 0 0;
padding:0 0 0;
}
.sidebar li {
margin:0;
padding-top:0;
padding-$endSide:0;
padding-bottom:.25em;
padding-$startSide:15px;
text-indent:-15px;
line-height:1.5em;
}
why i can't found that code?
nice articles..
thanks for sharing
I tried but was not able to find the code in my template
you had a bunch of wonderful tips!
but i cant find even one of the codes.. :/
nevermind..will keep trying :>
hi, nice tips but sorry i am new and i can't find
.sidebar ul{ in my template, i am using watermark template from blogger so can u please guide me properly how can i add image beside label link.Thanks.
Say it...