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.)