Can't get rid of space at top of web page...

Reply

Join Date: Apr 2008
Posts: 30
Reputation: Mapper99 is an unknown quantity at this point 
Solved Threads: 0
Mapper99 Mapper99 is offline Offline
Light Poster

Can't get rid of space at top of web page...

 
0
  #1
May 5th, 2009
I have a very simple webpage using css. For some odd reason there is about a 20px space at the top of my page. I have no idea where this is coming from! Any ideas?

Here is the page that is causing me grief:

http://www.laudontech.com/exhibitfloorplans/test5.php5
http://www.laudontech.com/exhibitflo...s/demomaps.css

Thanks in advance,

Mapper
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 25
Reputation: atifdmv is an unknown quantity at this point 
Solved Threads: 0
atifdmv atifdmv is offline Offline
Light Poster

Re: Can't get rid of space at top of web page...

 
0
  #2
May 5th, 2009
  1. body {
  2. text-align:center;
  3. font-family: Georgia, Serif;
  4. background: #000000;
  5. margin:0px;
  6. }

i think this can help u
Last edited by peter_budo; May 7th, 2009 at 5:17 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,323
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 161
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Can't get rid of space at top of web page...

 
0
  #3
May 5th, 2009
order is important in css
in some of the styles you set
  1. margin-top:0;
  2. margin:5px;
result margin-top:5px; in other styles you correctly zero the top margin
  1. margin:5px;
  2. margin-top:0;
a group of applied 5px will soon add to the 'missing' amount
Last edited by almostbob; May 5th, 2009 at 9:12 am.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Can't get rid of space at top of web page...

 
0
  #4
May 10th, 2009
Do not put px on a zero value. It is not supported. Put 0 instead of 0px.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 10
Reputation: !!underlink!! is an unknown quantity at this point 
Solved Threads: 2
!!underlink!! !!underlink!! is offline Offline
Newbie Poster

Re: Can't get rid of space at top of web page...

 
0
  #5
May 11th, 2009
make sure there are no   in your code that will create a space if in the wrong place
Printed Lanyards at Lanyardpass.co.uk
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 77
Reputation: mj080 is an unknown quantity at this point 
Solved Threads: 5
mj080's Avatar
mj080 mj080 is offline Offline
Junior Poster in Training

Re: Can't get rid of space at top of web page...

 
0
  #6
May 18th, 2009
also make sure that the div or table you have as your header, has no margin-top pushing it down.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC