Style Sheets
  Home arrow Style Sheets arrow Displaying Rounded Corners Built 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

Displaying Rounded Corners Built with CSS3 in a Wider Range of Browsers
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2010-03-22

    Table of Contents:
  • Displaying Rounded Corners Built with CSS3 in a Wider Range of Browsers
  • Review: rendering rounded corners in WebKit-based browsers
  • Rendering rounded corners in a wider range of browsers
  • Including the previous CSS code into a web page

  • 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


    Displaying Rounded Corners Built with CSS3 in a Wider Range of Browsers


    (Page 1 of 4 )

    Welcome to the last part of a five-part series that explains how to build rounded corners with CSS3. In this part you'll learn how to use two properties discussed in previous articles in the series together. In this way, a wider variety of browsers will render your rounded corners correctly.

    Among the variety of improved and enhanced features that come with the CSS3 specification, its “background” and “border-radius” properties will definitely be of interest to you. When they're implemented in a clever way, they allow you to build engaging rounded corners on web pages without having to deal with multiple block-level HTML elements or even use a pinch of JavaScript.

    Not all is beautiful and pleasant, however, when it comes to utilizing these properties with many modern browsers. Such browsers currently offer little or no support for the properties, which is obviously an annoying and frustrating issue. But, does this mean that you’ll have to give up and keep on creating your rounded corners using one of the dozens of “traditional” approaches that exist today?

    Well, some Mozilla and WebKit-based browsers do provide decent support for the standard “border-radius” property, even though it's via some proprietary implementations that can be tested on Safari and Firefox, among others.

    In fact, in the last two tutorials I discussed how to create basic rounded HTML containers on WebKit and Mozilla-driven browsers by using the custom “-webkit-border-radius” and “-moz-border-radius” properties respectively. This was a simple process, but we can improve on it to some extent if the corresponding properties are assigned simultaneously to the same target element. This would make it possible to render rounded corners on a wider range of browsers.

    Therefore, this final installment of the series will be focused on demonstrating how to implement the previous approach, thus finishing this humble introduction to  building rounded corners with CSS3. Now, let's dig in to our topic.

    More Style Sheets Articles
    More By Alejandro Gervasio


       · This last part of the series explains how to build rounded corners with CSS3 by...
     

    STYLE SHEETS ARTICLES

    - Styling HTML Lists with CSS: Manipulating Pa...
    - Styling HTML Lists with CSS: Specifying Pad...
    - Styling HTML Lists with CSS: Resetting Paddi...
    - Absolute Positioning in CSS: a Dynamic Menu
    - CSS Absolute Positioning: Creating a Quick S...
    - CSS: Building Tooltips with Absolute Positio...
    - 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...







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