Style Sheets
  Home arrow Style Sheets arrow Page 3 - Creating Angled Corners with Transparent B...
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  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
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

Creating Angled Corners with Transparent Background Images
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 2
    2008-02-05

    Table of Contents:
  • Creating Angled Corners with Transparent Background Images
  • Review: building rounded corners by using a transparent background image
  • Building angled corners by using a single transparent background image
  • Seeing the angled corners effect in action

  • 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

    Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!

    Creating Angled Corners with Transparent Background Images - Building angled corners by using a single transparent background image


    (Page 3 of 4 )

    As I explained in the section that you just read, it’s also possible to build some angled corners for a given web document by using the same approach that I utilized to display the rounded corners. As you might guess, the procedure is  limited to creating a transparent background image with the desired shape, and positioning this image inside the web page element that you want to decorate via some basic CSS styles.

    In simple terms, the background image that I plan to use to build the angled corners looks like this (edited for the sake of clarity):



    As you can see, the above background image has been created in such a way that it has only two solid areas, which logically are the ones that correspond to the respective angled corners. The rest of the image in question is completely transparent.

    Of course, now that you have learned how to build the pertinent background image aimed at creating a primitive angled corner effect on certain elements of a given web document, you might want to see how this effect looks when applied to a particular container of a sample web page.

    The below screen shot demonstrates very clearly the angled corner effect. In this case, it's implemented with a basic web page containing element:



    After analyzing in detail the previous image, you’ll have to agree with me that building angled corners using only one transparent background graphic is actually a straightforward process that can be tackled with minor difficulties, even if you’re a web designer taking your first steps into this exciting terrain. Quite simple, right?

    Okay, at this stage you hopefully learned how to style a particular element of a web page with a basic angled corner effect. However, the end result of this decorative process will be much better appreciated if you can see how the angled corners can be applied to certain sections of a sample web document.

    Keeping this in mind, in the section to come I’ll develop a practical example where you’ll be able to see how the inclusion of some basic angled corners can improve the look and feel of a given web page.

    To see how this brand new example will be set up, please go ahead and read the next few lines. I’ll be there, waiting for you.

    More Style Sheets Articles
    More By Alejandro Gervasio


       · In the course of this second part of the series, you’ll see you how to use...
     

    STYLE SHEETS ARTICLES

    - Creating Gradients for Individual Containers...
    - Creating Gradients for Web Page Headers with...
    - SEO Scrolling Frames Problem Solved
    - Building Cross-Browser Background Effects wi...
    - CSS: Pseudo
    - Using PNG Images to Build Background Effects
    - CSS: Continuing the Clarification of CSS Cla...
    - CSS: Top Secret Classification
    - CSS: Dimensions
    - CSS: Margins and Padding
    - CSS: Crossing the Border
    - CSS: Text, Fonts, and Tables
    - CSS: Working with Text
    - CSS: Backgrounds
    - CSS for the Newbie


    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway