CSS3 Circular Drop Down menu
With CSS 3 we can create Circular menus. This fiddle is simple example for that
HTML
<div id="menucontainer">
<ul id="hmenu">
<li><a href="http://techisquest.blogspot.com/">Home</a>
<ul>
<li><a href="http://techisquest.blogspot.com/">Test 1</a>
</li>
<li><a href="http://techisquest.blogspot.com/">Test 2</a>
</li>
<li><a href="http://techisquest.blogspot.com/">Test 3</a>
</li>
<li><a href="http://techisquest.blogspot.com/">Test 3</a>
</li>
</ul>
</li>
<li><a href="http://techisquest.blogspot.com/">About</a>
<ul>
<li><a href="http://techisquest.blogspot.com/">Test 1</a>
</li>
<li><a href="http://techisquest.blogspot.com/">Test 2</a>
</li>
</ul>
</li>
<li><a href="http://techisquest.blogspot.com/">Contact Us</a>
<ul>
<li><a href="http://techisquest.blogspot.com/">Test 1</a>
</li>
</ul>
</li>
<li><a href="http://techisquest.blogspot.com/">Info</a>
<ul>
<li><a href="http://techisquest.blogspot.com/">Test 2</a>
</li>
<li><a href="http://techisquest.blogspot.com/">Test 3</a>
</li>
</ul>
</li>
</ul>
</div>
CSS
/*
Techonolgy Quest;
creating a Circular menu is simple and completely depends on the
"border-radius".
While creating circular menu always keep same value for height, width and border-radius.
Following id will define the dimensions for the menu, margin, padding width, height.
*/
#menucontainer {
margin: 0px;
padding: 0px;
width: 100%;
height: 90px;
}
/* Following selectors will define the color and the border radius for the menu*/
#menucontainer ul, #menucontainer ul li ul {
list-style: none;
margin: 0px;
padding: 0px;
}
/* Following selector will define the style for individual menu or li tags. The following style gives them a look when the menus are not selected.
note that the position proerty is set to relative and dispaly is inline.
*/
#menucontainer ul li {
list-style: none;
margin: 10px;
padding: 0px;
background-color:#2CDF7B;
position: relative;
display: inline;
text-align: center;
/*Setting the height and width for the menu*/
width: 90px;
cursor:pointer;
height: 90px;
/*Setting the border-radius for the menu
various prefix are added so it is supported in older version of
browsers. For IE supported from IE-9+
IMPORTANT: to keep the border radius height and width same to get circle.
*/
-moz-border-radius: 90px;
-webkit-border-radius: 90px;
-khtml-border-radius: 90px;
border-radius: 90px;
/*Adding the box shadow to the menu*/
box-shadow: 0 0 10px black;
-moz-box-shadow: 0 0 10px black;
-webkit-box-shadow: 0 0 10px black;
float: left;
}
/* Style for the anchor tag defined in the menu.
*/
#menucontainer ul li a {
margin: 10px;
padding: 10px;
background-color:transparent;
display: block;
text-decoration: none;
text-align: center;
font-family:"Times New Roman", "Arabic";
font-size: 18px;
color: #E3E3C0;
}
/* The hover effect is defined using the below selectors
For the opacity is used to create...