moss2076
10-09-2007, 02:42 PM
Hi I want to create my own horizontal menu, rather like the green one that this site uses, but with the images flipped upsidedown. I want to design one with rounded edges at each end of the menu. I have seen a few on dynamic drive but Im having trouble replicating my own.
I have created a basic horizontal list, but cant get the 3 images positioned. I have left (end rounded), middle (rectangle shape), and right (end rounded) images but im not sure where to put each image eg in the UL, or the LI.
I dont have a website up and running at the moment, but here is my code so far! Sorry I know its rubbish.
<!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" />
<title>Untitled Document</title>
<style type="text/css">
body {
font: 11px verdana, arial, helvetica, sans-serif;
padding: 0px;
}
ul#leftmenu {
list-style-type:none;
background-repeat: no-repeat;
padding-right: 0px;
padding-bottom: 0px;
margin: 0px 0px 0px 0px;
}
#leftmenu li {
float:left;
margin:0px 1px 0px 0px;
padding:0px 10px 0px 0px;
background-image: url(../images/bannerimage_buttons_white_middle.gif);
background-repeat: repeat-x;
}
#leftmenu a {
display:block;
padding:5px 15px 5px 5px;
text-decoration:none;
color:#FFFFFF;
}
</style>
</head>
<body>
<ul id="leftmenu">
<li><a href="#">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Support</a></li>
<li><a href="#">Order</a></li>
</ul>
</div>
</body>
</html>
I have created a basic horizontal list, but cant get the 3 images positioned. I have left (end rounded), middle (rectangle shape), and right (end rounded) images but im not sure where to put each image eg in the UL, or the LI.
I dont have a website up and running at the moment, but here is my code so far! Sorry I know its rubbish.
<!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" />
<title>Untitled Document</title>
<style type="text/css">
body {
font: 11px verdana, arial, helvetica, sans-serif;
padding: 0px;
}
ul#leftmenu {
list-style-type:none;
background-repeat: no-repeat;
padding-right: 0px;
padding-bottom: 0px;
margin: 0px 0px 0px 0px;
}
#leftmenu li {
float:left;
margin:0px 1px 0px 0px;
padding:0px 10px 0px 0px;
background-image: url(../images/bannerimage_buttons_white_middle.gif);
background-repeat: repeat-x;
}
#leftmenu a {
display:block;
padding:5px 15px 5px 5px;
text-decoration:none;
color:#FFFFFF;
}
</style>
</head>
<body>
<ul id="leftmenu">
<li><a href="#">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Support</a></li>
<li><a href="#">Order</a></li>
</ul>
</div>
</body>
</html>