CSS divs for responsive screen sizes - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div

Description

CSS divs for responsive screen sizes

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">
#con<!--from w  w w . ja v  a2s .  c  o  m-->
 {
   max-width:311px;
   min-height:141px;
   background:yellow;
   border:2px solid Chartreuse;
}

#lo
 {
   width:141px;
   height:141px;
   background:green;
   display:inline-block;
   vertical-align:bottom;
}

#tex
 {
   width:161px;
   height:61px;
   background:orange;
   display:inline-block;
   vertical-align:bottom;
}
</style> 
 </head> 
 <body> 
  <div id="con"> 
   <div id="lo">
     Lorem 
   </div> 
   <div id="tex">
     Lorem 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials