Use RGBA Background - HTML CSS CSS Property

HTML CSS examples for CSS Property:background

Description

Use RGBA Background

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

#menu .col_1 a {
   -webkit-transition: all .5s ease-out 0.1s;
   -moz-transition: all .5s ease-out 0.1s;
   -o-transition: all .5s ease-out 0.1s;
   transition: all .5s ease-out 0.1s;
   background-color: rgba(0,0,0,1);
   color: red;
}
#menu .col_1 a:hover {
   background-color: rgb(255, 255, 255);
   background-color: rgba(255, 255, 255, 0.5);
   /* For IE 5.5 - 7*/
   filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
   /* For IE 8*/<!--from  w ww  . ja  v  a 2s . c o m-->
   -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
}


      </style> 
 </head> 
 <body> 
  <div id="menu"> 
   <div class="col_1"> 
    <a>link text</a> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials