white space at top of page

This is a discussion on "white space at top of page" within the Web Page Design section. This forum, and the thread "white space at top of page are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 26th, 2006, 13:29
New Member
Join Date: Nov 2006
Location: UK/LONDON/CROYDON
Age: 22
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Smile white space at top of page

Hi

I've just joined this forum.

my page has been designed in Frontpage - i have done some css coding in the code view. (I know that i should use dreamweaver as alot better, i will be soon!!!)

I have notice on alot of websites that their page starts right at the top, without any white space - e.g. http://www.tg007.net/

If you notice on that site, it starts right at the top, on frontpage, i have a small bit of white space at the top. I have tried this in dreamweaver but still, same issue. I am not talking about the background color. I mean that alot of people have the logo right at the top, just like tg007.

Can anyone tell me how to do this please?

Thank you for your time

Matt
Reply With Quote

  #2 (permalink)  
Old Nov 26th, 2006, 14:11
New Member
Join Date: Nov 2006
Location: Finland
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: white space at top of page

Get to code view and put

<style type="text/css">
html, body {
margin: 0px;
padding: 0px;
}
</style>

anywhere between the <head> and </head> tags. It removes any padding or margins the document has resulting in a document that starts from the upper left corner.
Reply With Quote
  #3 (permalink)  
Old Nov 26th, 2006, 21:39
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: white space at top of page

Stressiton has the right idea except that it should be the first entry in your css file and I would use:
Code: Select all
* {
   margin: 0;
   padding: 0;
}
What your saying here is default all margin and padding to zero. That way you know for sure where you are starting from.
Reply With Quote
Reply

Tags
space, white, white space

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ie6 white space under div AndrewChip Web Page Design 1 Jun 11th, 2008 13:15
Add white space using RegEx Access JavaScript Forum 2 Feb 8th, 2008 03:30
Big white space mikemay123 Web Page Design 5 Nov 6th, 2007 00:30
[SOLVED] White Space in Firefox a1anm Starting Out 9 Oct 31st, 2007 19:45
[SOLVED] white-space mcdanielnc89 Web Page Design 5 Oct 8th, 2007 16:48


All times are GMT. The time now is 02:12.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43