Home arrow Style Sheets arrow Styling Pseudo Classes with the RGBA CSS3 Property
STYLE SHEETS

Styling Pseudo Classes with the RGBA CSS3 Property


Bundled with the rest of the new features that come with the upcoming CSS3 specification, the “rgba” property is a powerful tool that will let you assign simultaneously (and easily) a specific color and a level of opacity to a selected HTML element. This makes it possible to create engaging alpha-based transparency effects on web pages without the need to rely on heavy PNG images or use a single pinch of JavaScript.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
May 11, 2010
TABLE OF CONTENTS:
  1. · Styling Pseudo Classes with the RGBA CSS3 Property
  2. · Review: changing the overall transparency of HTML elements with the rgba property
  3. · Styling the hover state of a few divs
  4. · Including the CSS styles in an (X)HTML document

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Styling Pseudo Classes with the RGBA CSS3 Property
(Page 1 of 4 )

Therefore, if you’re interested in learning how to put this handy property to work for you, this article series might the material that you’re looking for. In its four tutorials you’ll find a decent variety of code samples that will show you how to use the property to individually control the transparency of different sections of a web page element, including its inner text, background and borders.

And now that you've been introduced to the series’ main goal, it’s time to review the topics that were discussed in its previous (penultimate) part. In that tutorial I explained how to utilize the “rgba” property to modify the overall opacity of all of the H2 elements coded in a sample (X)HTML document. This task was accomplished by coupling the pertinent property at the same time to the “background,” “color” and “border” declarations of the selected elements. This process was very simple to follow.

It’s valid to point out, though, that the use of the “rgba” property isn’t limited to styling CSS selectors in its normal state. It's possible to utilize it for defining the visual presentation of pseudo classes with the same ease. To demonstrate how to achieve this in a few simple steps, in this last installment of the series I’m going to create a basic example that will show how to use the property for altering the opacity of some divs in their “hover” state.

Ready to tackle the last chapter of this series on the “rgba” property? Then begin reading right now!


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