h1 and h2
Hi folks, Im doing a final project for a beginner's course in HTML5 and CSS3, it involves creating a 5 page website. I've done this but part of the assessment is the "proper use of tags", i.e. h1 and h2, my layout works fine without them but I would like to include them. I have a header element with a h1 element floating left and a small image (logo) floating right within the header. Under that I have a h2 (subheading) all of the layout works but the h2 element refuses to close a gap between the 2. I have cleared both floats in the h2. I've opened a page with just these in it to try to understand what I'm doing wrong, but I can't see it, any advice on this would be appreciated ,
thanks
Eoin Byrne
here's the relevant HTML
<body>
<header class="header">
<h1 class="h1">AETHERSOUP</h1>
<img src="images/aethersoup-can.png" alt="Aethersoup Logo." width="60" height="123" id="logo" title="Aethersoup Logo."/>
</header>
<h2 class="h2">Web Design</h2>
</body>
and here's the CSS
.header {
width: 956px;
margin-left: auto;
margin-right: auto;
border-width: 2px;
border-style: solid;
border-color: #FFFFFF #FFFFFF #000000 #000000;
height: 150px;
background-color: #EAE6EB;
}
#logo {
float: right;
margin-right: 25px;
margin-top: 5px;
}
.h1 {
float: left;
color: #000000;
font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
font-size: 88pt;
margin-left: 20px;
margin-top: 5px;
font-weight: 200;
text-shadow: 0px 3px 4px #433A3A;
letter-spacing: 15px;
height: auto;
}
.h2 {
color: #000000;
width: 956px;
background-color: #EAE6EB;
border-width: 2px;
border-style: solid;
border-color: #FFFFFF #FFFFFF #000000 #000000;
font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
font-size: 35pt;
font-weight: 100;
text-align: center;
letter-spacing: 15px;
text-shadow: 0px 3px 4px #433A3A;
margin-right: auto;
margin-left: auto;
padding-bottom: 20px;
height: 40px;
margin-top: 5px;
clear: both
}