HTML CSS - Layout on smaller screen - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Layout

Description

HTML CSS - Layout on smaller screen

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">
body {<!--  w  ww .j ava2 s. co m-->
   margin:0 0 0 0 ;
}

.wrapper {
   width:961px;
}

.category h1 {
   float:left;
   width:941px;
   font-family:'Open Sans';
}

.low_wrapper {
   position:relative;
   margin-left:31px;
   margin-top:31px;
   position:absolute;
}

#low_info {
   margin:0 0 0px 34px;
   width:941px;
   background-color:Chartreuse;
   float:left;
}

.low_info_header {
   width:941px;
   height:121px;
   background-color:yellow;
   float:left;
   position:relative;
}

.low_info_element_big {
   height:401px;
   width:461px;
   background-color:blue;
   margin-top:11px;
   margin-right:21px;
   margin-bottom:11px;
   float:left;
   position:relative;
}
</style> 
 </head> 
 <body> 
  <div class="wrapper"> 
   <div class="low_wrapper"> 
    <div id="intro" class="category"> 
     <p> <span class="category_description"></span> </p> 
     <h1>Lorem</h1> 
     <p></p> 
     <div class="low_info_header">
       Lorem 
     </div> 
     <div class="low_info_element_big"></div> 
     <div class="low_info_element_big"></div> 
     <div class="low_info_header">
       Lorem 
     </div> 
    </div> 
    <div id="women" class="category"> 
     <h1>Lorem</h1> 
     <div class="low_info_header">
       Lorem 
     </div> 
     <div class="low_info_element_big"></div> 
     <div class="low_info_element_big"></div> 
     <div class="low_info_header">
       Lorem 
     </div> 
    </div> 
   </div> 
  </div> 
  <!-- .wrapper -->  
 </body>
</html>

Related Tutorials