Css responsive circle with image inside - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Css responsive circle with image inside

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">
.player-holder {<!--from w ww.ja v  a2 s  .co  m-->
   height:351px;
   max-width:651px;
   background:blue;
}

.player-thumb {
   height:100%;
   border-radius:100%;
   overflow:hidden;
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   background-repeat:no-repeat;
   background-size:100% 100%;
}
</style> 
 </head> 
 <body> 
  <div class="player-holder"> 
   <div class="player-thumb"></div> 
  </div>  
 </body>
</html>

Related Tutorials