Created
October 25, 2012 22:59
-
-
Save Ricardo-Diaz/3956008 to your computer and use it in GitHub Desktop.
CSS: Transparency-Opacity
This file contains hidden or 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
Using transparency – opacity | |
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. | |
.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