The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Help] HTML Page: Space between Header and top of page.

3 posters

Go down

Solved [Help] HTML Page: Space between Header and top of page.

Post by T3CHNOCIDE April 10th 2012, 4:39 am

Hello and thank you for visiting my problem thread,

I'm trying to use HTML and CSS to make a header so I can make a page from scratch. I'm new to CSS but am experienced with HTML. I have removed the spacing between the header and the left & right side of the page, however an infuriating space between the top of the page and my header remains, as shown here:

[Help] HTML Page: Space between Header and top of page. 2i29ao0

I am using the following code:

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>T3CH-Gaming - T3CH's Gaming Portfolio.</title>
   <style type="text/css">
body
{
height:100%;
width:100%;
background:url(http://www.nasa.gov/images/content/188598main_star_burst_galaxies_lg.jpg) no-repeat center center;
}
#curvedheader
{
background:url(http://i41.tinypic.com/k9dfdi.png) no-repeat center center;
height:100px;
width:2000px;
display:block;
position:absolute;
top:0;
left:0;
}
  </style>
</head>

<body>
   <div id="curvedheader" style="width:100%;">
    </div>
</body>
</html>

Any suggestions on how to approach this problem?

Thank you,
[Help] HTML Page: Space between Header and top of page. 2vigt8h

(If I do not reply instantly, it is probably because I have fallen asleep, but than you for contributing)


Last edited by T3CHNOCIDE on April 10th 2012, 11:57 am; edited 1 time in total (Reason for editing : Marking page as Solved.)
T3CHNOCIDE
T3CHNOCIDE
New Member

Male Posts : 11
Reputation : 1
Language : English, HTML, CSS, [Learning] Swedish.
Location : United Kingdom

Back to top Go down

Solved Re: [Help] HTML Page: Space between Header and top of page.

Post by The Shuffler April 10th 2012, 5:03 am

Whats the site ?

if you need to space out stuff you can add

Code:
</br></br>
The Shuffler
The Shuffler
Forumember

Posts : 49
Reputation : 1
Language : English

Back to top Go down

Solved Re: [Help] HTML Page: Space between Header and top of page.

Post by T3CHNOCIDE April 10th 2012, 5:10 am

The Shuffler wrote:Whats the site ?

if you need to space out stuff you can add

Code:
</br></br>

Hey Shuffler,

The site hasn't been published, it's brand new and is under construction. However, the problem I'm having is that there is a space between the top of my header and the top of my page, and I want the header to cover the top of the page; I fear using the <br/> tag will just increase that space.

Thanks,
[Help] HTML Page: Space between Header and top of page. 2vigt8h
T3CHNOCIDE
T3CHNOCIDE
New Member

Male Posts : 11
Reputation : 1
Language : English, HTML, CSS, [Learning] Swedish.
Location : United Kingdom

Back to top Go down

Solved Re: [Help] HTML Page: Space between Header and top of page.

Post by The Shuffler April 10th 2012, 5:27 am

T3CHNOCIDE wrote:
The Shuffler wrote:Whats the site ?

if you need to space out stuff you can add

Code:
</br></br>

Hey Shuffler,

The site hasn't been published, it's brand new and is under construction. However, the problem I'm having is that there is a space between the top of my header and the top of my page, and I want the header to cover the top of the page; I fear using the <br/> tag will just increase that space.

Thanks,
[Help] HTML Page: Space between Header and top of page. 2vigt8h


Hey Bro,
Well the code </br> is just simple it would just space out like hitting the ENTER bar.
The Shuffler
The Shuffler
Forumember

Posts : 49
Reputation : 1
Language : English

Back to top Go down

Solved Re: [Help] HTML Page: Space between Header and top of page.

Post by T3CHNOCIDE April 10th 2012, 11:37 am

The Shuffler wrote:
T3CHNOCIDE wrote:
The Shuffler wrote:Whats the site ?

if you need to space out stuff you can add

Code:
</br></br>

Hey Shuffler,

The site hasn't been published, it's brand new and is under construction. However, the problem I'm having is that there is a space between the top of my header and the top of my page, and I want the header to cover the top of the page; I fear using the <br/> tag will just increase that space.

Thanks,
[Help] HTML Page: Space between Header and top of page. 2vigt8h




Hey Bro,
Well the code </br> is just simple it would just space out like hitting the ENTER bar.

Hey Again,

Yes, but that is the problem with the <br/> tag it spaces things out. What I'm facing, is the need to remove the space between the header and the top of the page; without a space, the header will touch the top of the page.

Thanks though,
[Help] HTML Page: Space between Header and top of page. 2vigt8h
T3CHNOCIDE
T3CHNOCIDE
New Member

Male Posts : 11
Reputation : 1
Language : English, HTML, CSS, [Learning] Swedish.
Location : United Kingdom

Back to top Go down

Solved Re: [Help] HTML Page: Space between Header and top of page.

Post by T3CHNOCIDE April 10th 2012, 11:57 am

Hello all,

I apologise for the double post, however I have resolved this issue. If anyone else is facing this issue, please do not hesitate to PM me.

Thank you,
[Help] HTML Page: Space between Header and top of page. 2vigt8h
T3CHNOCIDE
T3CHNOCIDE
New Member

Male Posts : 11
Reputation : 1
Language : English, HTML, CSS, [Learning] Swedish.
Location : United Kingdom

Back to top Go down

Solved Re: [Help] HTML Page: Space between Header and top of page.

Post by Jophy April 10th 2012, 12:00 pm

Next time please use the EDIT button. Thanks.


Since this thread is marked as solved, this will be moved now.
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum