HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

why the top of my pages don`t touch the browser ?
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> DHTML
View previous topic :: View next topic  
Author Message
bosco



Joined: 23 May 2007
Posts: 6

Posted: Tue Jul 24, 2007 10:10 am     why the top of my pages don`t touch the browser ?  

Hi,

I would like to get rid of the space which is between the top of each of my page and the browser. The following is a link to the web page I’m referring to: http://www.burundivision.org/

I would like to get rig of the space which is between the top menu (accueil, actualité...forum..) and the header of the browser. How do I do that, such that it looks like what we have a the following url:

http://www.business-inafrica.com/


Thanks
Abstract X UK



Joined: 08 Jun 2007
Posts: 127
Location: United Kingdom

Posted: Wed Jul 25, 2007 11:08 pm      

Hello, try adding this to the top of your CSS document:

Code: body { margin:0 auto; padding-top:0px; }

Let us know how you get on.
sticks464



Joined: 31 Dec 2006
Posts: 1283

Posted: Wed Sep 12, 2007 4:39 am      

You might want to add a complete doctype to get out of quirks mode <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> and change your content type to <meta http-equiv="Content-Type" content="text/html; charset=utf-8">. Then add this to you css to remove all browser default padding and margins.
* {margin:0; padding:0;}
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> DHTML
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group