I’m going to make a big DIV centered horizontally in an ASPX file, I use following codes:
<body bgcolor="#33CC33">
<form id="form1" runat="server">
<center>
<div style="height:580px; width: 890px; top:0px; bottom:0px; background-color: #FFFFFF;">
</div>
</center>
it is positioned correctly, the only problem is that there is a small gap (about 10 pixels) between top of the screen and top edge of my DIV, but I want my DIV to start exactly from top edge of the browser screen, what is the problem?
thanks
Try the following:
S