Sir I am using these codes
<html>
<head>
<title>Center dive</title>
<style type="text/css">
html body{
margin:0 atuo;
margin-top:20px;
}
#main {
margin: 0 auto;
background-color: lightgreen;
overflow: auto;
text-align:center;
height:400px;
width:400px;
color:blue;
}
#box {
display:table-cell;
vertical-align: middle height: 200px;
width: 200px;
background-color:#FFA500;
border:1px solid silver;
color:blue;
font-weight:bolder;
font-size:24px;
padding:10px;
margin:0 auto;
}
</style>
</head>
<body>
<div id="main">
<div id="box">This box </br>must be
Centered</br>Horizontaly</br>and</br>Vertically</br> in </br>Main Div</div>
</div>
</body>
</html>
[IMG]http://i57.tinypic.com/2yvktck.png[/IMG]
How to Display box in the center of main div? (Horizontaly and Vertically)
Please help