Resizeable centred div tag with fixed position - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Fixed Position

Description

Resizeable centred div tag with fixed 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">
#conntainer {<!--   w w  w .j  a v  a2 s.  c o  m-->
   background-color:Chartreuse;
   position:fixed;
   width:91%;
   height:201px;
   top:51%;
   left:51%;
   z-index:100;
   -webkit-transform:translate(-51%, -51%);
   transform:translate(-51%, -51%);
}
</style> 
 </head> 
 <body> 
  <div id="conntainer"> 
  </div>  
 </body>
</html>

Related Tutorials