Hello,
I am creating a centered web site with various div's inside the main
(pBase) div.
Somehow, I am getting a gap on the top of my browser window both in IE
and Firefox.
I tried everything I could think of. Here is my entire HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test</title>
</head>
<body style="text-align: center">
<div id="pBase" style="clear:bo th; margin: 0px auto; text-align:left;
width:960px">
<div id="pHeader">pH eader</div>
<div id="pContent">
<div style="clear:bo th"></div>
<div id="pLogo" style="float:le ft;width:107px; ">Logo</div>
<div id="pMenu" style="float:le ft;width:600px; ">Menu</div>
<div style="clear:bo th"></div>
<div id="pWhatsUp" style="float:le ft;width:647px; ">WhatsUp</div>
<div id="pLogin" style="float:le ft;width:100px; ">Login</div>
<div style="clear:bo th"></div>
<div id="pLeft" style="float:le ft;width:100px; ">Left</div>
<div id="pCenter" style="float:le ft;width:100px; ">Center</div>
<div id="pRight" style="float:le ft;width:100px; ">Right</div>
<div style="clear:bo th"></div>
</div>
<div id="pFooter">pF ooter</div>
</div>
</body>
</html>
Could someone please help me out? I don't know what else to try!
Thanks,
Miguel
I am creating a centered web site with various div's inside the main
(pBase) div.
Somehow, I am getting a gap on the top of my browser window both in IE
and Firefox.
I tried everything I could think of. Here is my entire HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test</title>
</head>
<body style="text-align: center">
<div id="pBase" style="clear:bo th; margin: 0px auto; text-align:left;
width:960px">
<div id="pHeader">pH eader</div>
<div id="pContent">
<div style="clear:bo th"></div>
<div id="pLogo" style="float:le ft;width:107px; ">Logo</div>
<div id="pMenu" style="float:le ft;width:600px; ">Menu</div>
<div style="clear:bo th"></div>
<div id="pWhatsUp" style="float:le ft;width:647px; ">WhatsUp</div>
<div id="pLogin" style="float:le ft;width:100px; ">Login</div>
<div style="clear:bo th"></div>
<div id="pLeft" style="float:le ft;width:100px; ">Left</div>
<div id="pCenter" style="float:le ft;width:100px; ">Center</div>
<div id="pRight" style="float:le ft;width:100px; ">Right</div>
<div style="clear:bo th"></div>
</div>
<div id="pFooter">pF ooter</div>
</div>
</body>
</html>
Could someone please help me out? I don't know what else to try!
Thanks,
Miguel
Comment