My First Website
My First Website
<head>
<!-- you should always add your stylesheet (css) in the head tag so that it starts loading
before the page html is being displayed -->
</head>
<body>
<div id="page">
<div id="logo">
</div>
<div id="nav">
<ul>
<li><a href="#/home.html">Home</a></li>
<li><a href="#/about.html">About</a></li>
<li><a href="#/contact.html">Contact</a></li>
</ul>
</div>
<div id="content">
<h2>Home</h2>
<p>
</p>
<p>
</p>
</div>
<div id="footer">
<p>
</p>
</div>
</div>
</body>
</html>
p{ line-height: 1em; }
color: orange;
font-weight: normal;
line-height: 1.2em;}
a{
color: black;
text-decoration: none;}
body{
font-family: arial; font-size: 80%; line-height: 1.2em; width: 100%; margin: 0; background:
#ddc;}
#page{ margin: 20px; }
#logo{
width: 35%;
margin-top: 5px;
font-family: georgia;
display: inline-block;}
#nav{
width: 60%;
display: inline-block;
text-align: right;
float: right;
#nav ul{}
#nav ul li{
display: inline-block;
height: 22px;
#nav ul li a{
padding: 20px;
background: orange;
color: white;
#nav ul li a:hover{
background-color: #ffb424;
#content{
margin: 30px 0;
background: white;
padding: 20px;
clear: both;
#footer{
margin-bottom: 10px;
#footer p{
text-align: right;
text-transform: uppercase;
font-size: 80%;
color: grey;}