Transparency With CSS3


October 25th, 2009 1 comment

Previously we’ve learned how to make rounded corners and add multiple background images to a single element with the power of CSS3.

Transparency With CSS3

With CSS3 the ability to create transparent elements has been made very easy. No longer do we have to use PNG files or some fancy Javascript plugins for it. Now it can all be done with CSS using this simple line of code:

1
2
3
p {
    background: rgba(83, 119, 141, 0.5); // red, green, blue, opacity
}

This would output:

Element with opacity

Now what?

After reading this post maybe you'd be interested in reading some related posts?
You can also help me spread the word or leave a comment.
If you're planning on leaving maybe you'd like to subscribe via RSS Feed
or follow me on Twitter.

Spread the word

One Comment

Leave a reply