Hello,
I am fairly new to web designing and am finding it hard to create a drop down menu style for my webpage. I am attaching the CSS and HTML file can somebody pls explain how i might be able to do it.
The HTML 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=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css" />
<title>Green Leaf Modular Interiors</title>
</head>
<body>
<div id="container">
<div id="header">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="About Us.html">About Us</a></li>
<li><a href="Products.html">Products</a></li>
<li><a href="Accessories.html"</a></li>
<li><a href="Gallery.html">Gallery</a></li>
<li><a href="Order.html">Enquiry Form</a></li>
<li><a href="Contact Us.html">Contact us</a></li>
</ul>
</div>
<div id="content">
<div id="left">
<h1>Do it yourself Kitchenettes</h1>
<p align="justify" style=" font-size:14px;"> Kitchen remodeling will increase the design, function and resale value of a home. This section provides information about building kitchen cabinets, re-facing kitchen cabinets, selecting a kitchen cabinet style and planning a kitchen design that will look great and maximize the amount of available storage space.</p>
<p align="justify" style=" font-size:14px;"> Building your own kitchen cabinets is a great way to truly customize your kitchen design. Believe it or not, they really aren’t that hard to build. </p>
<h1>Cabinet Carcass</h1>
<div id="photos">
<img height="14%" width="14%" src="images/1.png" alt="photo" />
<img height="12%" width="12%" src="images/2.png" alt="photo" />
<img height="12%" width="12%" src="images/5.png" alt="photo" />
<img height="12%" width="12%" src="images/4.png" alt="photo" />
<img height="12%" width="12%" src="images/7.png" alt="photo" />
<img height="12%" width="12%" src="images/9.png" alt="photo" />
</div>
</div>
<div id="footerline"></div>
</div>
<div id="footer">Copyright © Green Leaf. All rights reserved.</div>
</div>
</body>
</html>
The CSS Code
body {
background-image:url(images/back.jpeg);
color:#000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
margin: 10px 10px;
padding: 0px;
}
.clear{clear:both;}
* {
margin: 0px;
padding: 0px;
}
#container {
margin: 0px auto;
text-align: left;
width: 717px;
}
a{
font-size:12px;
}
p{
margin: 15px 0px;
}
/********************** Header ***************************/
#header {
margin: 0px 0px 0px 0px;
background-image:url(images/header.png);
width:717px;
height:288px;
position:relative;
}
#header ul{
background-color:#85a157;
width:711px;
border: 3px solid #FFFFFF;
display:block;
top:255px;
position:absolute;
margin: 0px 0px 0px 0px;
height:22px;
padding:5px 0px 0px 0px;
text-align:center;
}
#header li{
display:inline;
}
#header ul a{
text-decoration:none;
color:#FFFFFF;
margin: 0px 15px;
}
#header ul a:hover{
text-decoration:underline;
color:#28556b;
}
#logo_w1,#logo_w2 {
font-size: 24px;
font-style:italic;
color:#FFFFFF;
position:absolute;
}
#logo_w1{
top:15px;
left:70px;
}
#logo_w2{
top:44px;
left:94px;
}
#header_text {
top:90px;
left:43px;
width:230px;
position:absolute;
}
#header_text p{
font-size: 18px;
color:#FFFFFF;
}
#header_text a{color:#28556b;}
#header_text a:hover{color:#c77e0c;}
/********************** Content ***************************/
#content {
background-image:url(images/content_bg.png);
width:717px;
height:343px;
}
img{
border-width:0px;
}
h1{
color:#000000;
font-size:14px;
margin: 20px 0px 20px 0px;
}
h2{
color:#85a157;
font-size:14px;
text-align:center;
width:200px;
margin: 10px 0px 15px 0px;
}
#left {
float:left;
width:600px;
margin-left:27px;
padding: 0px 10px 30px 0px;
display:inline;
}
#left a{color:#28556b;}
#left a:hover{color:#c77e0c;}
#photos a{
margin-right:14px;
}
/********************** Footer ***************************/
#footerline {
clear:both;
background-image:url(images/footer_bg.png);
font-size:1px;
height:10px;
}
#footer {
width:717px;
text-align:center;
padding: 20px 0px;
}