Skip to content

Instantly share code, notes, and snippets.

@Ricardo-Diaz
Created October 25, 2012 22:59
Show Gist options
  • Save Ricardo-Diaz/3956008 to your computer and use it in GitHub Desktop.
Save Ricardo-Diaz/3956008 to your computer and use it in GitHub Desktop.
CSS: Transparency-Opacity
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