Reply LinkBack Thread Tools Search this Thread
Old 30-08-2004, 14:30   #1 (permalink)
TheBBoyDisorder
Registered User
 
Join Date: Aug 2004
Posts: 25
top header/image shown without a space.

im new to designer talk so far i think its very usefull for people like me ... so i hope someone please responds.. but anyway..
..How would i go about making like my header or top image apear close to the top instead of it looking as if in the html code there is a space or somthing in the first line. ..here is an example of a site with a header/top image that i want to be able to do with mine.. ( which is make it appear as close to the top of the browser url bar as possible instead of there being a blank spot. )


what i want it to look like > http://www.sba.gov/

what i dont want it to look like > http://www.business.com/

( pay no mind to the content of the site its just for an example.)

well anyways someone PLEASE respond or IM me please.
  Reply With Quote
Old 30-08-2004, 14:35   #2 (permalink)
Ruckus
Registered User
 
Join Date: Aug 2004
Location: Philadlephia, PA USA
Posts: 5
What you need to set is the margins for the entire HTML document:

HTML Code:
<body topmargin="0" marginheight="0">

The corresponding parameters for the left/right margins are:

HTML Code:
<body leftmargin="0" marginwidth="0">

So to put it all together for a header that will touch the top of the browser and stretch completely left to right:

HTML Code:
<body topmargin="0" marginheight="0" leftmargin="'0" marginwidth="0">

You can thank browser (in)compatability for having to enter it two different ways!
  Reply With Quote
Old 30-08-2004, 14:41   #3 (permalink)
TheBBoyDisorder
Registered User
 
Join Date: Aug 2004
Posts: 25
... thank you so much!

Last edited by TheBBoyDisorder : 30-08-2004 at 14:54.
  Reply With Quote
Old 30-08-2004, 14:45   #4 (permalink)
Ruckus
Registered User
 
Join Date: Aug 2004
Location: Philadlephia, PA USA
Posts: 5
There's only one body tag in an html document. Typical start of a page looks like this:

HTML Code:
<html> <head> <title>Hello<title> <meta...> <link...> <script...> </head> <body topmargin="0" marginheight="0"> html stuff </body> </html>

So just add those parameters to the body tag you hopefully already have in your html document.
  Reply With Quote
Old 30-08-2004, 14:55   #5 (permalink)
TheBBoyDisorder
Registered User
 
Join Date: Aug 2004
Posts: 25
yea i just firgured out all i had to do was copy and paste .. thanx aLOT ... !!!
  Reply With Quote
Old 30-08-2004, 18:09   #6 (permalink)
gray
i still want paying
 
gray's Avatar
 
Join Date: Oct 2003
Location: newcastle, uk
Posts: 4,728
thats a really bad 1999 way to do it... you should be using css..


html, body {
margin: 0;
}
  Reply With Quote
Old 30-08-2004, 20:52   #7 (permalink)
roto
This is it - ground zero.
 
roto's Avatar
 
Join Date: Apr 2003
Location: Paper St.
Posts: 4,339
Send a message via AIM to roto Send a message via Yahoo to roto
Quote:
Originally Posted by gray
thats a really bad 1999 way to do it... you should be using css..
You beat me to it...
__________________
fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!

New to interweb design? Your friends at dt can help.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8