HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
why the top of my pages don`t touch the browser ?
Post new topic   Reply to topic    HTML Help Forum Index -> DHTML
View previous topic :: View next topic  
Author Message
bosco



Joined: 23 May 2007
Posts: 6

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

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

PostPosted: Wed Jul 25, 2007 11:08 pm     Reply with quote

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: 993

PostPosted: Wed Sep 12, 2007 4:39 am     Reply with quote

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;}
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> DHTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial