Style Sheets
  Home arrow Style Sheets arrow Building Rounded Corners with CSS3
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

Building Rounded Corners with CSS3
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2010-03-10

    Table of Contents:
  • Building Rounded Corners with CSS3
  • Building rounded corners the old way
  • Creating rounded corners using fewer divs
  • Building rounded corners using the CSS3 specification

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building Rounded Corners with CSS3


    (Page 1 of 4 )

    In this first part of a series, I provide you with a friendly introduction to building rounded corners with CSS3. In this initial stage, I show you how to create this popular decorative effect on web pages using four different background images, which were assigned to the same HTML container. This technique is impossible with current CSS methods.

    Yes, we have to admit it: rounded corners are an old decorative effect that has been used (and overused) for years in web design. Their ubiquitous presence isn't going to vanish any time soon. Probably, the reason for their long reign has to do more with simple common sense that with any obscure scientific principle: rounded corners, in their different flavors, are attractive to human eyes and can be applied in a great variety of environments and contexts.

    The dark side of rounded corners (if the phrase is really applicable) is that the process of implementing them on web pages is very often plagued with tricky twists. While currently there must be dozens of different approaches that permit developers to build rounded corners with relative ease, unfortunately many of them rely on JavaScript or non-semantic markup to create a realistic effect. Of course, there’s a valid justification for this vast proliferation of methods: CSS has lacked native support for rounded corners from the very beginning.

    With the progressive adoption of the CSS3 specification by most browser vendors, however, things are hopefully going to change for the better in many fields, and this includes naturally the implementation of rounded corners. True to form, CSS3 comes with an exciting variety of brand new features that will make creating rounded corners a breeze -- and best of all, without having to appeal to client-side scripting or ugly browser hacks to get the job done.

    The discouraging facet of this promising scenario is that some major browser manufacturers, like Microsoft, have been slow to add support for the CSS3 specification, as one might expect. In the meantime, though, it’s worth taking a close look at some methods that can be used for building rounded corners with CSS3, to give you a more accurate idea of how simple this process can be when using the specification’s new features.

    Does my proposal look engaging enough for you? Then don’t hesitate; start reading!

    More Style Sheets Articles
    More By Alejandro Gervasio


       · Building rounded corners with CSS3 is a simple process. This first installment of...
     

    STYLE SHEETS ARTICLES

    - Styling Pseudo Classes with the RGBA CSS3 Pr...
    - Controlling Overall Transparency of an HTML ...
    - Altering the Border Opacity of an HTML Eleme...
    - The RGBA CSS3 Property: an Overview
    - Using Span Tags to Include Logos in Web Pages
    - Using a Single H1 Element to Include Logos i...
    - Combining Divs and H1 Elements to Include Lo...
    - Semantically Including Logos in Web Pages
    - Adding Text Indentation to Style Code Blocks...
    - Decorating Line Numbers in Code Blocks Style...
    - Changing the Color of Code Lines with CSS
    - Using Ordered Lists to Style Code Blocks wit...
    - Using a Zebra Background Effect to Style Cod...
    - Displaying Rounded Corners Built with CSS3 i...
    - Building Rounded Corners with CSS3`s -webkit...







    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 11 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek