Dear Sir,
I have following codes
<html>
<style type="text/css">
html {
padding:0;margin:0 auto;
}
body {
padding:0;margin:0 auto;
}
#content {
position:absolute;
width:500px;height:600px;
color:red;background:#e3eeff;
padding:10px;border:1px solid green;
}
#div_left {
position:absolute;
width:200px;height:400px;left:20px;top:20px;
color:yellow;background:#e3eeff;
padding:10px;border:1px solid orange;
}
#div_right {
position:absolute;
width:200px;height:400px;left:250px;top:20px;
color:red;background:#e3eeff;
padding:10px;border:1px solid blue;
}
</style>
<body>
<div id="content">
<div id="div_left">This is left div</div>
<div id="div_right">This is right div</div>
</div>
</body>
</html>
My question is how to display my content div in center (page center) with all screen resolutions i.e
1024x768
1152x864
1280x600
1280x700
1280x768
1280x790 and so on
Please help