Membuat Menu Vertikal (Vertical)

Sebelumnya kita pernah membahas tentang membuat menu horizontal, nha sekarang mari kita mencoba membuat menu vertikal. Menu vertikal ini cocok kalau dipasang di sidebar karena bentuknya berjajar sevara vertikal (ya iyalah). Contohnya seperti gambar disamping itu. Beginilah cara membuatnya :

1. Login ke blogger trus pilih "Layout-->Edit HTML"
2. Masukkan kode berikut sebelum kode ]]></b:skin> atau sebelum kode </style> . Pokoknya ditaruh di dalam Barisan kode CSS deh.

.glossymenu, .glossymenu li ul{
list-style-type: none;
margin: 0;
padding: 0;
width: 185px; /*WIDTH OF MAIN MENU ITEMS*/
border: 1px solid black;
}
.glossymenu li{
position: relative;
}
.glossymenu li a{
background: white url('http://kendhin.890m.com/blog/vertical/blue1.gif') repeat-x bottom left;
font: bold 12px Verdana, Helvetica, sans-serif;
color: white;
display: block;
width: auto;
padding: 5px 0;
padding-left: 10px;
text-decoration: none;
}
.glossymenu li ul{
position: absolute;
width: 190px;
left: 0;
top: 0;
display: none;
}
.glossymenu li ul li{
float: left;
}
.glossymenu li ul a{
width: 180px;
}
.glossymenu li a:visited, .glossymenu li a:active{
color: white;
}
.glossymenu li a:hover{
background-image: url('http://kendhin.890m.com/blog/vertical/blue2.gif');
}

* html .glossymenu li { float: left; height: 1%; }
* html .glossymenu li a { height: 1%; }


Untuk memilih warna menu, perhatikan kode2 yang berwarna merah (blue1.gif dan blue2.gif). Ganti kode tersebut dengan pilihan warna dibawah ini. Misal jika kamu ingin memilih menu warna merah maka kodenya menjadi seperti ini :
.glossymenu li a{
background: white url('http://kendhin.890m.com/blog/vertical/red1.gif') repeat-x bottom left;

dan
.glossymenu li a:hover{
background-image: url('http://kendhin.890m.com/blog/vertical/red1.gif');


Pilihan Warna menu vertikal :

blue1.gif
blue2.gif
green1.gif
green2.gif
red1.gif
red2.gif
pink1.gif
pink2.gif
black1.gif
black2.gif


3. Kemudian di save.
4. Lalu pergi ke menu "Page Elements"
5. Pilih "Add a Gadget -->HTML/JavaScript" kemudian masukkan kode berikut kedalamnya:

<ul id="verticalmenu" class="glossymenu">
<li><a href="/">Home</a></li>
<li><a href="http://trik-tips.blogspot.com">Trik Blog</a></li>
<li><a href="http://x-template.blogspot.com" >Free Template</a></li>
<li><a href="http://getebook.co.cc">Free Ebook</a></li>
</li>
</ul>

Kode yang berwarna merah adalah linknya dan yg warna biru adalah teks yang ditampilkan. Kalau mau menambahkan menu tingal buat lagi kode seperti yg berkedip2 dibawahnya.

Dah gitu aja. Gampang kan???? :D
Previous
Next Post »
14 Komentar
avatar

Howdy! This is my first comment here so I just wanted to give a quick shout out
and say I really enjoy reading through your posts.
Can you suggest any other blogs/websites/forums that deal with the same topics?
Thank you so much!

Balas
avatar

If you desire to improve your knowledge just keep visiting this web page and be updated with the most up-to-date news posted here.

Balas
avatar

This is the right blog for anyone who wants to find out about this topic.
You realize a whole lot its almost hard to argue with you (not that I actually
would want to?HaHa). You definitely put a new spin on a subject that's been discussed for many years.
Great stuff, just great!

Balas
avatar

Hello, all is going sound here and ofcourse every one is
sharing data, that's actually fine, keep up writing.

Balas
avatar

I do not even know how I stopped up here, but I assumed this submit was once good.
I don't recognise who you're but definitely you are going
to a well-known blogger when you aren't already ;) Cheers!

Balas
avatar

I absolutely love your website.. Great colors & theme. Did you
make this web site yourself? Please reply back as I?m planning to create my very own site and would love to learn where you got this from or
exactly what the theme is named. Kudos!

Balas
avatar

As soon as I detected this web site I went on reddit
to share some of the love with them.

Balas
avatar

Please let me know if you're looking for a article author for your weblog.
You have some really good posts and I think I would be a good
asset. If you ever want to take some of the load off, I'd really like to write some articles for your blog in exchange for a link back to mine.
Please shoot me an email if interested. Thanks!

Balas
avatar

I'm still learning from you, as I'm making my way to the top as well.
I definitely love reading all that is written on your blog.Keep the aarticles coming.
I enjoyed it!

Balas
avatar

I got what you intend,saved to my bookmarks, very nice site.

Balas
avatar

A motivating discussion is worth comment. I do think that you need to write more on this subject,
it may not be a taboo matter but usually people don't talk about these topics.

To the next! Best wishes!!

Balas
avatar

Unquestionably consider that that you stated. Your favourite justification appeared
to be on the net the easiest factor to have in mind of.

I say to you, I definitely get annoyed while other folks think about issues that they plainly don't recognise about.

You managed to hit the nail upon the top
and outlined out the entire thing without having side
effect , other folks can take a signal. Will probably be again to get more.
Thank you!

Balas
avatar

Hi friends, how iss everything, and what youu want to say about this paragraph, in my view its in fact remarkable in favpr of me.

Balas
avatar

Definitely believe that which you said. Your favorite justification seemed to
be on the net the simplest thing to be aware of.

I say to you, I certainly get annoyed while
people consider worries that they just don't know about.

You managed to hit the nail upon the top as well as defined out the
whole thing without having side effect , people can take a signal.
Will probably be back to get more. Thanks

Balas

Pengunjung yang baik adalah pengunjung yang mengapreasikan pendapatnya dikomentar...
Terimakasih ... :D