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
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...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.