Div alignment and opacity - HTML CSS CSS Property

HTML CSS examples for CSS Property:opacity

Description

Div alignment and opacity

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">
.redfooterw {<!--from   w  w  w. j  a va2  s. c  om-->
   max-width:71rem;
   position:relative;
   border:solid 2px;
   border-color:Chartreuse;
   left:10rem;
}

.redfooterh {
   display:inline-block;
   vertical-align:middle;
   width:100%;
   background-color:yellow;
   opacity:0.5;
   padding:3rem;
}

.inficon {
   width:11%;
   display:inline-block;
   position:relative;
   padding:0 2.6rem;
   vertical-align:middle;
}

.footerlink {
   width:61%;
   display:inline-block;
   vertical-align:middle;
}
</style> 
 </head> 
 <body> 
  <div class="redfooterw"> 
   <div class="redfooterh"> 
    <div class="inficon">
      Lor 
    </div> 
    <div class="footerlink"> 
     <a href="#" target="_blank">Lorem ipsum dolor sit amet, consectetur adipiscing el</a> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials