7Dec/100
create simple menu navigation using CSS
Here i will explain how to make simple menu using CSS (without table) like this.
First create menu using list tag li and make inside <div> element and give it name as "main-menu". After that make css for styling the list. We must make the list become one line using float:left to make horizontal menu. For the detail you can see in CSS below.
css :
#main-menu {
width:99%;
}
#main-menu ul{
list-style:none;/* remove the circle bullet */
}
#main-menu ul li{
float:left;/* Make the menu list become one line */
}
#main-menu ul li a{
display:block;
width:auto;
padding:2px 10px;
text-decoration:none;
color:#000000;
border-bottom:solid 2px #999999; /* give buttom line effect */
margin:5px;/* give some space between menu */
}
#main-menu ul li a:hover{
border-bottom:solid 2px #0099FF; /* change the buttom line became blue */
}
Related posts:
Tagged as: css, html, menu navigation
Leave a comment
Categories
Latest Post
- check checkbox with specific value ( using jQuery )
- Javascript UI library
- 10 Cartoon wallpaper for your desktop
- Free tool for draw Diagram
- CSS Generator Tools
Blogroll
Like Kipipo.com
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Aug | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||