[Help] HTML Page: Space between Header and top of page.
3 posters
Page 1 of 1
[Help] HTML Page: Space between Header and top of page.
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:
I am using the following code:
Any suggestions on how to approach this problem?
Thank you,
(If I do not reply instantly, it is probably because I have fallen asleep, but than you for contributing)
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:
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,
(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- New Member
- Posts : 11
Reputation : 1
Language : English, HTML, CSS, [Learning] Swedish.
Location : United Kingdom
Re: [Help] HTML Page: Space between Header and top of page.
Whats the site ?
if you need to space out stuff you can add
if you need to space out stuff you can add
- Code:
</br></br>
The Shuffler- Forumember
- Posts : 49
Reputation : 1
Language : English
Re: [Help] HTML Page: Space between Header and top of page.
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,
T3CHNOCIDE- New Member
- Posts : 11
Reputation : 1
Language : English, HTML, CSS, [Learning] Swedish.
Location : United Kingdom
Re: [Help] HTML Page: Space between Header and top of page.
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,
Hey Bro,
Well the code </br> is just simple it would just space out like hitting the ENTER bar.
The Shuffler- Forumember
- Posts : 49
Reputation : 1
Language : English
Re: [Help] HTML Page: Space between Header and top of page.
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,
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,
T3CHNOCIDE- New Member
- Posts : 11
Reputation : 1
Language : English, HTML, CSS, [Learning] Swedish.
Location : United Kingdom
Re: [Help] HTML Page: Space between Header and top of page.
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,
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,
T3CHNOCIDE- New Member
- Posts : 11
Reputation : 1
Language : English, HTML, CSS, [Learning] Swedish.
Location : United Kingdom
Re: [Help] HTML Page: Space between Header and top of page.
Next time please use the EDIT button. Thanks.
Since this thread is marked as solved, this will be moved now. |
Jophy- ForumGuru
- Posts : 17922
Reputation : 836
Language : English
Location : Somewhere
Similar topics
» iLivid 'Download' has invaded the Header space on every page
» Large Space in Post before html Table
» header and html code.
» Cbox Header HTML Code
» How to Embed a Google Docs Form into an HTML page using HTML Pages Management
» Large Space in Post before html Table
» header and html code.
» Cbox Header HTML Code
» How to Embed a Google Docs Form into an HTML page using HTML Pages Management
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum