Resizing the image within the table in mobile - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Size

Description

Resizing the image within the table in mobile

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">
@media (max-width: 600px)  {
   table {<!--from   w  w  w.j a  v  a2 s .c o  m-->
      width:96%;
   }
   
   .custom-box {
      margin-left:11px;
      margin-right:11px;
   }
   
   .margin-box {
      padding-bottom:11px;
   }
   
   .cust-box {
      margin-left:0px;
   }
   
   .carousel-inner {
      max-height:501px !important;
   }
   
   .img {
      max-width:100% !important;
      height:auto;
      border-radius:51%;
      -webkit-transition:-webkit-transform .9s ease-in-out;
      -moz-:-moz-transform .9s ease-in-out;
      transition:transform .9s ease-in-out;
      width:100%!important;
   }
   
   .img:hover {
      -webkit-transform:rotate(361deg);
      -moz-:rotate(361deg);
      transform:rotate(361deg);
   }

}
</style> 
 </head> 
 <body> 
  <table class="table borderless"> 
   <tbody> 
    <tr> 
     <td align="center" width="10%"> <img width="55%" class="img" src="https://www.java2s.com/style/demo/Firefox.png"> </td> 
     <td> <h4>Lorem ipsum dolor si</h4> <p class="pindent">Lorem ipsum dolor sit amet, consectetur adip</p> </td> 
    </tr> 
    <tr> 
     <td align="center" width="10%"> <img width="55%" class="img" src="https://www.java2s.com/style/demo/Firefox.png"> </td> 
     <td> <h4>Lorem ipsum dolor si</h4> <p class="pindent">Lorem ipsum dolor sit amet, c</p> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials