Sunday, 3 March 2013

Create CSS Tabbed Menu with Rounded Corners | Simple tabbed Menu with CSS Example


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 jQueryasp.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-familyArial, Helvetica, sans-serif;
font-size13px;
color#404040;
background-color#FFF;
}
#testnav {
margin0;
padding0;
list-stylenone;
overflowhidden;
border-top0.5em solid #fff;
border-bottom0.4em solid #0288D8;
}
#testnav li {
floatleft;
height2em;
margin0 0.5em;
}
#testnav a:link,
#testnav a:visited {
floatleft;
height1.6em;
padding0.2em 0.5em;
background#CCE7F7;
color#0288E1;
font-weightbold;
text-decorationnone;
border-width0.1em 0.1em 0 0.1em;
border-stylesolid;
border-color#CCE7F7;
border-radius6px;
-moz-border-radius6px;
-webkit-border-radius6px;
line-height1.6em;
positionrelative;
top0.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

No comments:

Post a Comment