Introduction:
Here I will explain how to create CSS tabbed menu with rounded corners or Simple CSS Rounded Corners tabbed menu.
Description:
In previous articles I explained jQuery Menu with Bounce Effect, Show div with particular scrollbar using CSS, jQuery Restrict user to enter only numeric characters and many articles relating to jQuery, asp.net,CSS. Now I will explain how to create simple CSS tabbed menu with rounded corners.
In previous articles I explained jQuery Menu with Bounce Effect, Show div with particular scrollbar using CSS, jQuery Restrict user to enter only numeric characters and many articles relating to jQuery, asp.net,CSS. Now I will explain how to create simple CSS tabbed menu with rounded corners.
To implement CSS rounded corner tabbed menu we need to write the code like as shown below
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Create tabbed Menu with Rounded Corners using CSS</title>
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
color: #404040;
background-color: #FFF;
}
#testnav {
margin: 0;
padding: 0;
list-style: none;
overflow: hidden;
border-top: 0.5em solid #fff;
border-bottom: 0.4em solid #0288D8;
}
#testnav li {
float: left;
height: 2em;
margin: 0 0.5em;
}
#testnav a:link,
#testnav a:visited {
float: left;
height: 1.6em;
padding: 0.2em 0.5em;
background: #CCE7F7;
color: #0288E1;
font-weight: bold;
text-decoration: none;
border-width: 0.1em 0.1em 0 0.1em;
border-style: solid;
border-color: #CCE7F7;
border-radius: 6px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
line-height: 1.6em;
position: relative;
top: 0.3em;
}
#testnav a:hover
{
background: #0288D8;
border-color: #0288D8;
color: #fff;
}
</style>
</head>
<body>
<ul id="testnav">
<li><a href="#">Home</a></li>
<li><a href="#">Asp.net</a></li>
<li><a href="#">JavaSrcipt</a></li>
<li><a href="#">HTML</a></li>
<li><a href="#">DreamWeaver</a></li>
<li><a href="#">About Me</a></li>
</ul>
</body>
</html>
|
Live Demo
For live demo check below menu
For live demo check below menu
No comments:
Post a Comment