Jump to content

Doctype Adds White Bar At Top Of Page?


mattm1712

Recommended Posts

this is m code if i remove the doctype it works but not the styles in ie so i need it there but adds a white bar at the top of the page, can anyone help?

 

<!DOCTYPE HTML>

<html>

<head>

<link rel="stylesheet" href="styles.css" type="text/css" media="all">

</head>

<body style="margin: 0px; padding: 0px;" >

<div id='topbar' align='center'>

<div class='menubar'>

<ul>

<li class='list'>sdf</li>

<li class='list'>sdf</li>

<li class='list'>dsf</li>

</ul>

</div>

</div>

<div id='centainer' style='width: 100%;' align='center'>

 

</div>

</div>

</body>

</html>

Link to comment
https://forums.phpfreaks.com/topic/272284-doctype-adds-white-bar-at-top-of-page/
Share on other sites

Without the contents of the style sheet no-body will be able to help you. I highly doubt the doctype is inserting some sort of white bar (could just be added padding or a margin) to the top of your page. Try debugging the code yourself by commenting out div tags...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.