Opacity image in CSS3



1. HTML Code

<section class="social">
<a href="#"><img alt="Share to Facebook" src="images/social-facebook.png"></a>
<a href="#"><img alt="Share to Twitter" src="images/social-twitter.png"></a>
<a href="#"><img alt="Digg This" src="images/social-digg.png"></a>
<a href="#"><img alt="Stumble It" src="images/social-stumble-upon.png"></a>
<a href="#"><img alt="Share to Reddit" src="images/social-reddit.png"></a>
<a href="#"><img alt="Share to Delicious" src="images/social-delicious.png"></a>
<a href="#"><img alt="Technorati" src="images/social-technorati.png"></a>
<a href="#"><img alt="LinkedIn" src="images/social-linkedin.png"></a>
<a href="#"><img alt="Google Buzz" src="images/social-buzz.png"></a>
<a href="#"><img alt="Blogger" src="images/social-blogger.png"></a>
<a href="#"><img alt="More..." src="images/more.png"></a>
</section>

2. Style Sheet

<style type="text/css">
section.social-opacity
{
	clear: both;
	display: block;
	margin-top: 20px;
	text-align: center;
}
section.social-opacity a
{
	margin: 0;
	outline: medium none;
	padding: 0 2px;
	cursor: pointer;
}
section.social-opacity:hover a
{
	opacity: 0.2;
}
section.social-opacity a:hover
{
	opacity: 1;
}
</style>

Comments

Popular posts from this blog

PHP: Date Difference for PHP 5.2

HTML5 video loop src change on end play function

display the_content with setup_postdata