Href Link around an icon set as a background image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Link

Description

Href Link around an icon set as a background image

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">
.icon-user<!--from  w w  w . ja  v a 2 s. com-->
 {
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   width:33px;
   height:33px;
}
</style> 
 </head> 
 <body> 
  <ul id="navigation"> 
   <li> <a href="https://google.com" target="_blank"> 
     <div class="icon icon-user"></div> 
     <div class="text">
       Lorem ipsu 
     </div> </a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials