Rendering height property in media query - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Media

Description

Rendering height property in media query

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <title>Lorem</title> 
  <style type="text/css">
@media only screen and (max-width:600px) {
   .mobile-height-10 img {
      width:11px !important;
      height:11px !important;
      background-color:Chartreuse;
   }<!--   w w  w  . j  ava  2s  .  com-->

}
</style> 
 </head> 
 <body class="body" dir="ltr" style="padding:0; margin:0; display:block; background:#ffffff; -webkit-text-size-adjust:none"> 
  <style type="text/css">
@media only screen and (max-width:600px) {
   .mobile-height-10 img {
      width:11px !important;
      height:11px !important;
      background-color:Chartreuse;
   }

}
</style> 
  <table align="center" bgcolor="#f4f4f4" border="0" cellpadding="0" cellspacing="0" class="mobile-full-width" style="background:#f4f4f4;"> 
   <tbody> 
    <tr> 
     <td bgcolor="#ff0000" class="mobile-height-10" style="line-height:0px;"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png" style="max-width:50px;height:auto;"> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials