January 30, 2008

(77) Comments

How to Create Horizontal Tabs Menu

Kendhin

What is horizontal tabs menu? horizontal tabs menu is bla..bla..bla... I can't explain anymore, he..he., it's look like this:



To create it is not as simple as it's look, it's complicated. You have to design button, you have to create CSS and HTML code. Now I will show you how to create "Horizontal tabs menu" in blogger.


The first thing you have to di is create an image like this:

and

If you can't to create it, you can use my below images:

blackleft.gifblackright.gif
greenleft.gifgreenright.gif
redleft.gifredright.gif
unguleft.gifunguright.gif
yellowleft.gifyellowright.gif
blueleft.gifblueright.gif
whiteleft.gifwhiteright.gif


Ok, let's begin

1. Login to Blogger, chose "Lay out --> Template --> Edit HTML"
2. Don't forget to backup your template first.
3. Check the "Expand Widget Templates" checkbox.
4. Try to find this code ]]></b:skin>, if you found it then put the code below above it

/*credits : http://trick-blog.blogspot.com */
#tabshori {
float:left;
width:100%;
font-size:13px;
border-bottom:1px solid #2763A5; /*Under Line, you can change or delete it */
line-height:normal;
}
#tabshori ul {
margin:0;
padding:10px 10px 0 50px; /* Menu position*/
list-style:none;
}
#tabshori li {
display:inline;
margin:0;
padding:0;
}
#tabshori a {
float:left;
background:url("http://blogoholic.info/files/menu/blackleft.gif") no-repeat left top;
margin:0;
padding:0 0 0 4px;
text-decoration:none;
}
#tabshori a span {
float:left;
display:block;
background:url("http://blogoholic.info/files/menu/blackright.gif") no-repeat right top;
padding:5px 14px 4px 4px;
color:#24618E; /*Text menu color*/
}
#tabshori a span {float:none;}
/* End IE5-Mac hack */
#tabshori a:hover {
background-position:0% -42px;
}
#tabshori a:hover span {
background-position:100% -42px;
}


you can change the bold text with other image, for example, if you want to chose my red menu image the code will be like this:

background:url("http://blogoholic.info/files/menu/redleft.gif") no-repeat left top;

background:url("http://blogoholic.info/files/menu/redright.gif") no-repeat right top;


5. Then copy the code below

<div id="tabshori">
<ul>
<!-- Change the links with your own links -->
<li><a href="http://trick-blog.blogspot.com"><span>Home</span></a></li>
<li><a href="http://trick-blog.blogspot.com"><span>Trik-Tips</span></a></li>
<li><a href="http://trick-blog.blogspot.com"><span>Free Template </span></a></li>
<li><a href="http://trick-blog.blogspot.com"><span>Blog Dictionary</span></a></li>
<li><a href="http:/trick-blog.blogspot.com"><span>Profile</span></a></li>
</ul>
</div >


change http://trik-tips.blogspot.com with your own link, and change the bold text with your own text.

6. Next step is to put the tabs menu into your blog, this more difficult because we have different templates. There are some methods to do this, Here is the methods, you can chose and try for any methods.

- methode A:
Find this code :<div id="content-wrapper">. if you found it, paste the above code (code number five) above it. Preview your template, if it looks good save your editting, but if it's not good try to put above this code </div>, you will find many codes like that, try to put the code above it and preview your your blog, do it more often until it's suitable for your template.

If you have nice with your menu position, is unnecessary to do methode B, but if you feel difficult to apply methode A you can try methode B
- methode B:
Find the below code :

<b:section class='header' id='header'
maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true'
title='your blog title (Header)' type='Header'/>
</b:section>


change the green text so that to become like this:

<b:section class='header' id='header'
maxwidgets='2' showaddelement='yes'>
<b:widget id='Header1' locked='false'
title='your blog title (Header)' type='Header'/>
</b:section>


Save your setting, the go to "Page Elements" and click "Add page Element " on the header area, chose "HTML/JavaScript" then put the number five code above into "content" box, then click "save" and preview your new blog.




Related Articles :



77 Responses to "How to Create Horizontal Tabs Menu"
Anonymous said :
July 2, 2008 4:00 AM
thanks you so much for this tricks.
MuMo said :
July 10, 2008 4:31 AM
It's good! YEAY!! THANK YOU :)
Daniel said :
July 29, 2008 10:41 PM
i have a problem, the images doesnt appear, do u know why??
Daniel said :
July 29, 2008 10:46 PM
i found the problem, it was the " that change in the copy&paste. in this part:
background:url("http://blogoholic.info/files/menu/redleft.gif") no-repeat left top;

background:url("http://blogoholic.info/files/menu/redright.gif") no-repeat right top;
July 29, 2008 11:57 PM
this is helping me a lot
Jack said :
August 10, 2008 10:42 AM
Thanks..your trick is pretty cool..:)
Anonymous said :
August 11, 2008 9:23 PM
images not displayed...Please check!!
August 16, 2008 9:48 AM
that is so helpful..i'll try that one..thanks
Beijing Olympics Medal Tally
Shannon said :
August 21, 2008 1:42 AM
I created this, however I am not sure how to get some content to show up on certain tabs but not others. Right now the tabs are at the top of my blog (as desired) but each tab displays the same content.
Shannon said :
August 21, 2008 3:11 AM
Okay, so I figured out the content bit. Is there a way to get some posts to only show up under my tabs (not on the home)
MarlyMS said :
August 22, 2008 1:43 PM
hi..i did the coding but when I displayed my page..the archive and blogroll still showing up in my sidebar..what will i do on them not to appear in my sidebar? i want them to appear in my tabs..tnx...
Valeu Brasil said :
August 22, 2008 7:07 PM
Works perfectly, thank you man ! But how can you change the text's color in the buttons ?
September 1, 2008 5:11 AM
How can you center the tab line on your blogger page? Everything is perfect except it floats to the far left! HELP
Eky Dakka said :
September 14, 2008 8:53 PM
I really need this,, Thanks again
me said :
September 17, 2008 8:16 PM
Thank yeah!!! its help me alot..

feel free to drop by my page

http://resepi.noorjannah.com/
Dipa Ghaghda said :
September 23, 2008 5:19 AM
Hi,

I wanted a horizontal menu underneath my header in black, I used your method but I'm not having any lucky and don't know where I'm going wrong. I'm really frustrated and would LOVE a little help if you would be as kind. Like your orange menu bar on this blog, I would like a black bar attached to my header without any gaps just like yours.

My webpage is www.innercorr.com.

Thank you.xx
asya d. said :
September 28, 2008 3:23 AM
Hi! thank you very much for this post. i can figure out though, how to align my tags to the left.
Can you help?
http://thediscontinuitiesofmycontinuum.blogspot.com/
DiamondPot said :
October 5, 2008 1:01 AM
tough 4 me
Monu said :
October 5, 2008 11:54 PM
Thanks. This article helps me creating a menu in my blogspot. check it out
http://www.explore-your-thought-process.blogspot.com
Anonymous said :
October 19, 2008 9:24 PM
hello. I've used the this code and it works perfectly. now I wonder, is it possible to highlight the active tab?
-DiEz- said :
October 23, 2008 7:35 AM
this is NICE mate, helps a lot :)
Mordom said :
October 28, 2008 6:08 PM
Sorry, but your icon backgrounds you provide seem to be offline. In my blog the background doesn't appear anymore and I can't see the .gif's also anymore.
Mothership said :
October 29, 2008 12:22 PM
I have tabs, but the same content on each page. Same problem as Shannon, above, I think.

Thanks for the help so far!
Oliver said :
October 30, 2008 5:00 PM
The backgrounds were offline for me aswell a couple of days ago but they are now online :) yay, can't wait to see how it looks on my blog, been really hard trying to find a decent horizontal menu because the majority of them cause errors in my code.

Thanks kendhin
Kendhin said :
November 2, 2008 12:22 AM

I have added some explanation for the codes with the red color. Try to change it for your purpose.

Sory guys, for some day ago I have a problem with my hosting which I use to put these files. but now it's running well.

tiyo avianto said :
November 11, 2008 4:04 PM
thanksits gooood tutorial
Ufell said :
November 15, 2008 10:58 AM
Thanx, this trick i really need
Ovan said :
November 21, 2008 1:24 PM
I have a problem, It appears as vertical tab not horizontal tab do you know why ? please ?
check it : worldtopia.blogspot.com
chopara said :
November 27, 2008 12:11 AM
:D
November 29, 2008 3:03 PM
:x Thank You
pravin said :
December 3, 2008 7:52 PM
can u put image so that it will more easy to under stand wht u r telling :?
Sue said :
December 4, 2008 9:14 AM
Hi there, thank you so much for the tips. I've created the tabs successfully. But could you tell me how to move the existing posts into individual tabs ? Because each time I click on the tab, the system tells me "the blog you were looking for was not found". :?
zooni said :
December 11, 2008 3:48 PM
yeah thanks so much it works
Mordom said :
December 16, 2008 2:13 AM
Now that you moved all the icon links are broke again, please upload them again and change the URL given in the post.
Thanks
Andy-fatic said :
December 19, 2008 10:24 PM
Can anyone post the dimensions of gif images (in pixels) so that we can create our owns?
MemoryKeeper said :
December 26, 2008 5:10 AM
This is great info! Unfortunately, the pictures aren't showing....arghhhh!

If I create my own tabs, does the code look the same if I'm getting them from a photo hosting site, or my own computer?

Thanks again!
miztahkebz said :
January 4, 2009 2:15 PM
This post has been removed by the author.
January 7, 2009 4:37 PM
I tried to put menu on my blog i followed second method to put the tabs but when I try to save it, it gives error message giving me some code like 9x65dl and so .... i though it could be servers problems but i've tried to do so about 10 times but with no success. Could you please help me my blog http://whoaresikh.blogspot.com
swechha said :
January 7, 2009 5:42 PM
heyy its good, but my tab names are still the same as your's.
How do I change my tab names and create content for each tab
Anonymous said :
January 16, 2009 12:59 AM
does anyone know how to delete an old comment on here? Can anyone here do that for me?

Thanks :)
February 2, 2009 11:16 AM
your images are broken
Anonymous said :
February 12, 2009 10:10 PM
i love you, author..u r the only one who gave proper codes and real help with this html things.thank u so much
Anonymous said :
February 23, 2009 8:09 PM
x( look!!! your images are broken..........
Ana said :
February 28, 2009 9:46 PM
Hi!

I have problems with the last step:

Save your setting, the go to "Page Elements" and click "Add page Element " on the header area, chose "HTML/JavaScript" then put the number five code above into "content" box, then click "save" and preview your new blog.

I cannot find the "add page element". I can only see add gadget or edit my header. I would appreciate if someone could help me!

THanks!
Ana said :
February 28, 2009 10:08 PM
I found it... sorry I didn't realize HTML/JavaScript was in add gadget!
Anonymous said :
March 1, 2009 1:38 PM
The tabs are great!! But can someone please help me get my post linked to their individual tabs? I'm sure it's easy once you set up the tabs but I'm not having any luck.

Thanks!
March 17, 2009 12:04 PM
Thanks for the tutorial :) it helps lot!
http://kusut-masai.blogspot.com
vonbix said :
March 23, 2009 9:38 AM
Hi, I just wanted to ask if do you know how to embed a serach box in THIS horzontal tabs menu..? :?
http://www.3gpline.co.cc/
Ali said :
March 24, 2009 5:03 PM
How can i make my own button image for this horizontal tab menu?
vonbix said :
March 26, 2009 6:55 AM
@Ali: you can use any image editor program. I used photoshop for mine. http://www.3gpline.co.cc/ :D
Sohna Munda said :
April 2, 2009 1:06 AM
I wanna follow your blog what to do?? :?
Just Israr said :
April 12, 2009 1:51 AM
nice post;;)
April 13, 2009 4:51 AM
your images arent working
wow gold said :
April 18, 2009 4:07 PM
Gold key link for( wow power leveling )the law by (wow power leveling)the law by( wow power leveling )all, such as bubble( power leveling )shadow dream hallucinations, such( wow gold )as exposed as well( wow powerleveling )as electricity, should be the case
April 23, 2009 12:38 PM
Tank Very much??!!!!1
he...e....
pusing Q buat Menu Horizontal???!!1:f
izzamil said :
April 25, 2009 2:38 PM
How do you create your animation icon for your blog address. I really interesting. Can you tell me how ? Thanks.
Shraddha said :
May 23, 2009 6:53 AM
Hi..I wanted to create horizontal adsense bar on the top of my blog...pls tell me how can i do this :?
Prongs said :
May 27, 2009 11:21 PM
hi, how can i create new pages such as blogroll, home, and so on, so that i can link the tabs to different pages.
etvgen said :
June 10, 2009 1:24 PM
:D
Sudeep said :
June 19, 2009 12:00 AM
Hi but i cant find images in these urls where is image pls help me sudeep611@gmail.com
Hamidur said :
June 21, 2009 6:12 PM
I am facing some strange problem, I already applied this hack and found good results in Internet explorer and opera but found problem in firefox where the same menu breaks down and menu becomes vertical rather horizontal and image alo becomes vertical in the right side.

Please help
Anonymous said :
June 22, 2009 12:57 PM
I can't get the photos?? Can you possibly send them to me
Bilal Ahmad said :
July 3, 2009 1:48 PM
Thank you.
But i want to add a menu bar in my blog.
How can it be possible.
Bilal Ahmad said :
July 3, 2009 1:57 PM
Just like this.

* Home
* Free Template
* Free Ebook
* Free 3D
* Blogoholic
How can i add to my blog.
Chels said :
July 10, 2009 9:01 AM
That was superb! Pretty easy to follow! One thing that messed me up is in methode A when you say to find the code with "content-wrapper"
it should look like this 'content-wrapper'.
Thanks for the help!
NeomaX said :
July 11, 2009 3:12 PM
I hv been searching 4 this...
thx alot...it looks very nice with my template...
Anonymous said :
July 25, 2009 8:20 PM
Great! Congratulations !
BUT: this MRNU is valid only for Beta version or I can implement in Classic Blog - Blogger

Tim/Toronto
products said :
August 27, 2009 8:53 AM
China Wholesale has been described as the world’s factory. This phenomenom is typified by the rise ofbusiness. Incredible range of products available with China Wholesalers “Low Price and High Quality” not only reaches directly to their target clients worldwide but also ensures that wholesale from china from China means margins you cannot find elsewhere and buy products wholesaleChina Wholesale will skyroket your profits.wedding dressescheap naruto cosplayanime cosplaycheap Gemstone Jewelry
Shrijaa said :
September 1, 2009 7:52 PM
OMG!!!
t s nt working 4 me
Raj babu said :
September 6, 2009 11:36 AM
i got it..thankyou for your tips..
Limbadez© said :
September 18, 2009 11:52 PM
umm, dude, ure menu bars are colorless
Arafin said :
September 21, 2009 2:16 PM
For Exclusive Blogger Tips Tricks & Full Version Blogger Templates Visite

http://tips-tricks-for-blogger.blogspot.com/

U Will Be Surprise Check This Out Guys!
Arafin said :
September 21, 2009 2:16 PM
For Exclusive Blogger Tips Tricks & Full Version Blogger Templates Visite

http://tips-tricks-for-blogger.blogspot.com/

U Will Be Surprise Check This Out Guys!
Arafin said :
September 21, 2009 2:17 PM
For Exclusive Blogger Tips Tricks & Full Version Blogger Templates Visite

http://tips-tricks-for-blogger.blogspot.com/

U Will Be Surprise Check This Out Guys!
October 4, 2009 11:57 PM
thnx dude helped alot.but i have a problem i can't post a new article under specific tab.....??plz tell??
ME said :
October 5, 2009 10:14 PM
can't find this (locked='false') on header section.

please advise.

Thanks!
durga prasad said :
October 27, 2009 11:15 AM
hello,
i have created the horizontal menu bar...can u please tell me how to put content into that Tabs,
when i click the tabs how can my different content viewed??

Post a Comment