Home arrow JavaScript arrow Building Rounded Corners With CSS and JavaScript
JAVASCRIPT

Building Rounded Corners With CSS and JavaScript


Rounded corners give your website a professional, polished look. Unfortunately, the old school way of building rounded corners is rather messy and involves a lot of redundant markup. This article explains a much cleaner way of achieving the same effect.

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 44
January 03, 2005
TABLE OF CONTENTS:
  1. · Building Rounded Corners With CSS and JavaScript
  2. · Our old friendly tables
  3. · The CSS approach
  4. · Working with fixed boxes
  5. · Nesting div elements
  6. · Using the DOM approach

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Building Rounded Corners With CSS and JavaScript
(Page 1 of 6 )


Introduction

Surely, across our numerous visits, when surfing the Web, we have seen a lot of websites presenting fancy and very attractive background effects on their pages. From simplistic approaches to fairly complex designs, backgrounds are always relevant elements to achieve the professional “look and feel” that most Web designers intend to reach.  Building sites that offer visitors highly qualified content, “wrapped” into an elegant visual presentation, is very often one of the most challenging tasks that developers have to face.

One of the most common background effects that empowers considerable visual aspects of a website is rounded corners. They have been used for years as decorative effects, and keep on being among the most requested design techniques.

With the progressive implementation and support for CSS that most modern browsers offer today, rounded corners are well suited for being developed within their scope.

When working with CSS, as with other things, there are several ways and solutions for achieving the desired effect.

In this article, we’ll be taking a look at the advantages and drawbacks of some of the usual techniques currently in use, and present newer approaches using an excellent combination of CSS and JavaScript.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks
- Dynamic jQuery Styling

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials