Skip to content

Instantly share code, notes, and snippets.

@magemore
Created April 25, 2012 04:55
Show Gist options
  • Save magemore/2486536 to your computer and use it in GitHub Desktop.
Save magemore/2486536 to your computer and use it in GitHub Desktop.
Using transparency – opacity
.transparent {
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity:0.5;
opacity:0.5;
}
Example:
<div class="box transparent">Your content</div>
@magemore
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment