Click here to Skip to main content
15,907,913 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to make the Menu Corners to be rounded
==========================================

Dear Experts !!

I have Created a Menu...So i need its Corners to be Rounded. and also for HOME the background color should be Permanent and for other menus on mouse over it should change.

#FDCB0A - Yellow
#197E46 - Green

For HOME it should be Permanent as this Color #FDCB0A and for others Green Background and on MOUSEOVER it should change to yellow for others. and also need Rounded Corners for Menu Borders.

Please help me..This is my code.

XML
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>

   <style type="text/css">

 menu{
    width: 100%;
    background-color: #197E46;
    }

    menu ul{
    margin: 0; padding: 0;
    float: left;}

.menu ul li{
    display: inline;}

.menu ul li a{
    float: left; text-decoration: none;
    color: white;
    padding: 10.5px 11px;
    background-color: #197E46; }

.menu ul li a:visited{
    color: white;}

.menu ul li a:hover, .menu ul li .current
{
    color: #fff;
    background-color:#FDCB0A;
    }

 </style>
</head>


<body>

<form id="form1" runat="server">

<div class="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
<br style="clear:left"/>
</div>


 </form>
</body>
</html>



Please set this code and send me according to my requirement what i have mentioned.

Very Thanks in Advance.
Posted

http://Rounded corner generator[^] should give you the CSS you need.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 8-Mar-13 21:25pm    
Pretty good one, there are more... My 5.
—SA
Try looking into http://www.exploding-boy.com/images/cssmenus/menus.html[^] See if it helps you.
 
Share this answer
 
First thing is that EnableRoundCorner="true".
Its depend on browser compatibility.
In Mozilla we can see round corners but in IE we wont see it.
 
Share this answer
 
you can use ajax control toolkit.
 
Share this answer
 
hi u can use alot of ways:
for example:
draw for Eaxmple 10 or most Div And change Positions and U can draw a Arc With this Ways
another way
use Css3 And -moz-border-radius:25px;
another way use Image and set in Divs!!!

Good Luck My Dear Firend
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900