If you're looking to add rounded corners to your website, consider using the jQuery round corner plugin available at
http://jquery.malsup.com/corner/
This plugin is compatible with all browsers, including IE. It creates rounded corners in IE by using nested divs instead of images. Additionally, in browsers that support native border-radius rounding (such as Opera 10.5+, Firefox, Safari, and Chrome), the plugin simply sets a CSS property instead.
Instructions for Use
To utilize this plugin, make sure to include both the jQuery library and the Corner JavaScript script before the closing </body>
tag. Then, write your jQuery code like $('div, p').corner('10px'); and place it before ''. This will create rounded corners for all div
and p
elements. If you want to target specific IDs or classes, you can use code 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>