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/
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;}