Created
April 25, 2012 04:55
-
-
Save magemore/2486536 to your computer and use it in GitHub Desktop.
Using transparency – opacity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.transparent { | |
filter:alpha(opacity=50); | |
-moz-opacity:0.5; | |
-khtml-opacity:0.5; | |
opacity:0.5; | |
} | |
Example: | |
<div class="box transparent">Your content</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can make a box or any object on your website transparent with this, changing the opacity value to how transparent you want it to be ie. from really see-through to just barely see-through.