Use the jQuery round corner plugin.
It is supported in all browsers, including IE. NECESSARY IMAGES. It draws corners in IE using nested divs (no images). It also has a built-in radius environment in browsers that support it (Opera 10.5+, Firefox, Safari, and Chrome). Thus, in these browsers, the plugin simply sets the css property.
Here how to use it
You need to include jQuery and Corner js script before </body> . Then write your jQuery as <script>$('div, p').corner('10px');</script> and put it in front of ''. So your html will look like this. Here I am making round corners for all div and p tags. If you want to do this for a specific id or class, you can do something like $('#myid').corner();
<body> <div class="x"></div> <p class="y"></p> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="http://github.com/malsup/corner/raw/master/jquery.corner.js?v2.11"></script> <script>$('div, p').corner();</script> </body>
source share