For a cleaner solution, you can give jQuery Corner a try. It's a plug-in available for jQuery to apply rounded corners (in a large variety of styles) and all you have to do is apply a CSS class to the panel or div and include a tiny JavaScript into your page. It works well as you can apply padding to the panel/div itself, without having to create any additional ones. However, you can't have a border to the rounded panel/div (jQuery Corner automatically removes the borders). jQuery Corner also gives you the benefit of being able to apply the rounded corners to non-ASP.NET pages so you can run a part of your website on another technology too.
Here are some samples with both that I came up with:
The Rounded Corners Extender can have borders and edge colors applied to it.
Adding padding to the Rounded Corners Extender keeps it from resizing with the window and makes it protrude from the right.
No comments:
Post a Comment