Hi,
I'm building a design for a website as a practice, but it seems i'm missing sthg as every time i try to add <h> tag of any size, the div shifts down leaving a blank space above, but it works fine if i replaced the <h> with a large size regular font. here's my css as a sample:
body{
width:80%;
margin:auto;
background:#FFFFCC;
border:#000666 medium;
}
#header{
height:100px;
width:100%;
background:#bdd44f url(../images/logo.gif) no-repeat;
}
#logo {
text-align:center;
font-size:50px;
font-family:"fantasy";
}
here's the use in the HTML page
<!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" />
<link type="text/css" href="../CSS/main.css" rel="stylesheet" />
<title>Untitled Document</title>
</head>
<body>
<div id='header'>
<div id="logo">
<h1> Website's Name as a header </h1>
</div>
</div>
I don't know how to fix it, can anyone help??
thank you in Advance