Knowledge Walls
Venkatesan
Hyderabad, Andhra Pradesh, India
Passcode:
Horizontal center in Div Popup boxes of WEB UI Tips and Tricks
922 Views
Source Code: HTML
<div id="layout_container">
   Horizontal center layout on page with
</div>

<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
<h1>page content</h1>
Source Code: CSS
#layout_container {
   background-color: darkgreen;
   margin: 0 auto;
   position: fixed;
   left: 0px;
   right: 0px;
   bottom: 0px;
   top: 0px;
   width: 50%;
   color: white;
   padding: 10px;
}
Demo & Output 
Best Lessons of "WEB UI Tips and Tricks"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details