mattm1712 Posted December 22, 2012 Share Posted December 22, 2012 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> Quote Link to comment https://forums.phpfreaks.com/topic/272284-doctype-adds-white-bar-at-top-of-page/ Share on other sites More sharing options...
cpd Posted December 22, 2012 Share Posted December 22, 2012 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... Quote Link to comment https://forums.phpfreaks.com/topic/272284-doctype-adds-white-bar-at-top-of-page/#findComment-1400894 Share on other sites More sharing options...
Love2c0de Posted December 22, 2012 Share Posted December 22, 2012 If you can post your CSS file I will be willing to help you debug it. Regards, AoTB. Quote Link to comment https://forums.phpfreaks.com/topic/272284-doctype-adds-white-bar-at-top-of-page/#findComment-1400905 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.