Hi,
I am now trying to get to grips with
HTML5 and css.
I have a simple html page here:
My test Site
This is the HTML:
Code:
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Auto World</title>
<meta name="keywords" content="A Website">
<meta name="description" content="The Maddest Auto Community">
<meta name="revisit-after" content="2 days">
<meta name="robots" content="all, index, follow">
<meta name="author" content="SimplePage.net">
<meta name="Rating" content="General">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<noscript>
<p>This site needs Javascript to work properly. PLEASE ENABLE JAVASCRIPT.</p>
</noscript>
<header>
<section>
<h1>Auto World</h1>
<h2>The Maddest Auto Community</h2>
</section>
</header>
<nav>
<u1>
<li><a ref=" ">Home</a></li>
<li><a ref=" ">Product a</a></li>
<li><a ref=" ">Product b</a></li>
<li><a ref=" ">Services</a></li>
</ul>
</nav>
<footer>
</footer>
</body>
</html>
MY CSS is:
Code:
*
{
margin:0 0;
padding:0 0;
}
h1
{
font-family:comic sans;
font-size:30px;
color:#FF0000;
}
h2
{
font-family:comic sans;
font-size:16px;
color:#777;
}
h3,h4,h5,p,li,a
{
font-family:Helvetica,Arial,sans-serif;
}
header nav
{
display:block;
width:900px;
margin:0 auto;
}
header section
{
display:block;
height:60px;
background:555;
padding:30px 30px 30px 30px;
-moz-border-radius:0px 0px 25px 25px;
-webkit-border-radius:0px 0px 25px 25px;
}
nav
{
background:#332F28;
height:30px;
border:1px solid #777;
border-width:0px 1px 1px 1px;
}
nav ul
{
list-style:none;
}
nav ul li
{
float:left;
margin:0px 24px;
}
nav ul li a
{
font-size:15px;
color:#777;
text-decoration:none;
display:block;
padding:6px 10px 4px 10px;
height:29px;
border-width:0px 2px;
border-style:solid
border-color:fff;
}
Now, this is supposed to give me a rounded corner header
and the menu items should be on the menu bar displayed nicely.
For some reason I am not getting any of this.
Can anyone see where I have gone wrong ?
Thanks.
.
__________________
If you want to attract and keep more clients, then offer great
customer support.
Support-Focus.com. automates the process and gives you a
trust seal to place on your website.
I recommend that you at least take
the 30 day free trial.