Home arrow Style Sheets arrow Page 3 - Creating Angled Corners with Transparent Background Images
STYLE SHEETS

Creating Angled Corners with Transparent Background Images


This series of instructive tutorials shows you how to build rounded and angled corners, as well as other eye-catching effects by utilizing a few basic transparent background images. These images can be easily applied to any web page element in order to improve its look and feel and make it more attractive to the users of a given web site.

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 3
February 05, 2008
TABLE OF CONTENTS:
  1. · Creating Angled Corners with Transparent Background Images
  2. · Review: building rounded corners by using a transparent background image
  3. · Building angled corners by using a single transparent background image
  4. · Seeing the angled corners effect in action

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
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.


blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Combinators: Working with Child Combinat...
- CSS Combinators: Using General Siblings
- Intro to CSS Combinators
- CSS Semicircles and Web Page Headers
- Drawing Circular Shapes with CSS3 and Border...
- More CSS Pagination Link Templates
- CSS Pagination Links
- Animated CSS3 Image Gallery: Advanced Transi...
- CSS3 Animated Image Gallery: Transitions
- CSS3 Properties: Fixed Heights with box-sizi...
- CSS3 Properties: Altering Strokes and 3D Eff...
- CSS3 Properties: Text-Stroke
- CSS3 Transitions: Width and Height Properties
- Creating a Drop Down Menu in CSS3
- Intro to CSS Transitions

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 9 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials