Invert sites div position without changing HTML code - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Position

Description

Invert sites div position without changing HTML code

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">
.patrat1<!-- w  w w.  j  a  v  a  2s  .com-->
 {
   width:100px;
   height:100px;
   background:blue;
}

.patrat2
 {
   width:100px;
   height:100px;
   background:red;
}

@media screen and (max-width: 700px)  {
   body div {
      display:table-caption;
   }

}
</style> 
 </head> 
 <body> 
  <div class="patrat1"></div> 
  <div class="patrat2"></div>  
 </body>
</html>

Related Tutorials