Create responsive layout to change text position - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Create responsive layout to change text position

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">

.menu-wrapper {<!--   w  w  w  .j  a v  a2  s.  c o m-->
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
}
@media screen and (min-width: 0) and (max-width: 520px) {
   .menu-wrapper {
      top: auto;
      bottom: 0;
   }
}
.menu-wrapper .menu {
   width: 100%;
   text-align: center;
}


      </style> 
 </head> 
 <body> 
  <div class="menu-wrapper"> 
   <div class="menu"> 
    <a href="#">Item one</a> 
    <a href="#">Item two</a> 
    <a href="#">Item three</a> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials