Check out the demo here
Step by Step:
1. Firstly you'll need to create some links. Here's some I made earlier. Copy the code below somewhere inside your body tags.
Please see the right hand pane before copying my code - Thank you! >>>
<ul id='menu'>
<li><a href='#'>Colours</a>
<ul>
<li><a href='#'>Red</a></li>
<li><a href='#'>Yellow</a></li>
<li><a href='#'>Blue</a></li>
</ul>
</li>
<li><a href='#'>Fruits</a>
<ul>
<li><a href='#'>Orange</a></li>
<li><a href='#'>Apple</a></li>
<li><a href='#'>Bananna</a></li>
</ul>
</li>
<li><a href='#'>No Submenu</a></li>
</ul>
2. Next, you'll need to add styling. Copy the code below and paste inside your style tags or in your external stylesheet.
/*DROPDOWN FUNCTIONALITY*/
/*set up ul tags*/
#menu, #menu ul{ padding:0; margin:0}
/*set up a tags*/
#menu a{display:block;}
/*position level 1 links horizontally*/
#menu li{display:block; float:left;}
/*undo previous style for level 2 links*/
#menu li ul li{float:none;}
/*position level 2 links vertically and hide*/
#menu li ul{display:none; position:absolute; z-index:1}
/*unhide level 2 links on li:hover from level 1*/
#menu li:hover ul{display:block;}
/*DROPDOWN STYLING:*/
#menu{height:25px}
#menu a{color:#09F; padding:5px 10px 5px 10px;}
#menu a:hover{color:#0CF;}
#menu li{background-color:#FFF; border:solid 1px #CCC; margin-left:-1px}
#menu li:hover{background-color:#F0F0F0}
3. Test it. Isn't that nice? Now change the links from step 1 and the /*DROPDOWN STYLING*/ section from step 2 until your menu looks as you'd like.Tested in IE9, Chrome & Firefox but should work across all modern browsers.
16 comments:
Great, but does'nt work. Not in MSIE9 anyway. FF was ok.
ahh, works in MSIE9 if we use your xml doctype tag.
Cool.... Really works..
Excellent, many thanks, it really helped me get my head around it.
OK does it work it html im planing some mischief against my teacher because he said he would not teach is il maake one myself
coach factory outlet
nike free run flyknit
coach outlet
ugg outlet store
oakley sunglasses
adidas super color
pandora charms
nike shoes for men
converse shoes
christian louboutin
20161228caiyan
jimmy choo outlet
salvatore ferragamo
adidas football boots
timberland outlet
ralph lauren
jordan 11
oakley sunglasses
the north face
north face
coach outlet
chenyingying20180313
This information is very useful. thank you for sharing. and I will also share information about health through the website
Pengobatan penyakit Meningioma
Cara Mudah Menghilangkan Keloid
Pengobatan Alami Tuntaskan Keputihan
Obat Luka Bernanah bekas Caesar
Obat Alami Menurunkan tekanan Darah Tinggi
Obat Herbal Walatra Berry Jus
coach outlet
michael kors outlet
nfl jerseys wholesale
christian louboutin outlet
coach outlet online
canada goose outlet
canada goose outlet store
canada goose outlet
christian louboutin sale
pandora outlet
shenyuhang20180608
oakley sunglasses cheap
nike revolution
jordan shoes
longchamp outlet
jordan 5
nike shoes for women
running shoes
nike outlet online
michael kors outlet clearance
dolce & gabbana
chenyingying20180627
kate spade outlet
salvatore ferragamo shoes
marc jacobs handbags
montre pas cher
longchamp handbags
jimmy choo
hogan
golden goose sneakers
lebron 11
dansko shoes
2018.7.14chenlixiang
The post is written in very a good manner and it contains many useful information for me. Thank you very useful information admin, and pardon me permission to share articles here may help :
risa herbal
cara menghilangkan benjolan
toko obat herbal sapnudin
sehat dan cantik alami
khasiat obat herbal
cara menghilangkan bekas jerawat
cara mengobati malaria
1
2 download s128
3
4 cbet hondablack
5 m.918kiss
6 daftar osg777
7
8 daftar game slot joker
supreme clothing
curry 5 shoes
golden goose
retro jordans
golden goose sneakers
lebron 17 shoes
moncler
yeezy 350
kyrie 5
balenciaga shoes
view it now bulk sex dolls,vibrators,silicone sex doll,sex dolls,dildo,wholesale sex toys,vibrators,vibrators,dog dildo click now
go to this site https://www.dolabuy.ru/ visit this website bags replica gucci Continue replica bags china
Post a Comment