Menu
if you see the site here =
[url]www.custardface.co.uk/ramsey
I have used % on the widths so that it adjusts for different screen res.
But ive noticed that when i use a % width for the text content it makes the images overlap
Sorry to be a pain but its really frustrating me ?
Hope all is well
Regards
overflow: hidden;
[CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ramsey Vehicle Sales</title>
<link href="ramsey.css" rel="stylesheet" type="text/css">
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="ramseyie6.css">
<![endif]-->
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>Ramsey Vehicle Sales - Home Page</h1>
<p>Tel: 01487 710011</p>
</div>
<ul id="nav">
<li><a href="index.html">Home</a></li>
<li><a href="vans.html">Vans</a></li>
<li><a href="pickups.html">PickUps</a></li>
<li><a href="aboutus.html">About Us</a></li>
<li><a href="motors.html">Ramsey Motors</a></li>
<li><a href="find.html">Find Us</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
<div id="contentwrap">
<div id="detailbar">
<img src="mainpage.gif" alt="Ramsey Vehicle Sales">
<img src="mainpage.gif" alt="Ramsey Vehicle Sales">
</div>
<div id="content">
<div class="tr"><div class="bl"><div class="br">
<h2>Welcome to Ramsey Vehicle Sales.... </h2>
<p>Big, small, side loading, rear loading, trafic's, transit's, vito's, vivaro's, berlingo's, scudo's there are loads of quality used vans at Ramsey Vehicle Sales </p>
<p>Tell us what you need in a van and we'll find the right one for you.</p>
<p>Low mileage light commercial vehicles & pick-up's, every single one comes with a great warranty and a full service.</p>
<p> There's <strong>finance</strong> and <strong>leasing options</strong> available so your business vehicle can fit your business budget.</p>
<h2>Used Vans</h2>
<p>Please feel free to browse our <a href="vans.html">Stock Pages</a> and view our latest selection of used vans for sale. You may click on any vehicle photograph for a larger picture and additional details.</p>
<p class="fineprint">We need your low mileage vans in part exchange or purchased for cash, Hire purchase account settled plus immediate decision. For further information please do not hesitate to contact us.</p>
</div></div></div></div>
</div>
<div id="footer">
<p>110-112 Great Whyte Ramsey, Cambs PE26 1HS</p>
</div>
</div>
</body>
</html>[/CODE]
As noted in my previous post, the navigation comes before the content wrapper, and the side detail bar comes before the content. I did not use a clearing div as this wreaked havoc in IE6. Also note that what will be the two images in the header are actually marked up as text, and the navigation menu is a list of links - much nicer for screen readers and search engine spiders.[CODE]* {
margin: 0;
padding: 0;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
border: 1px solid #4B4B4B;
padding: 10px 0;
}
p {
margin: 0 10px 10px;
}
#wrapper {
margin: 0 auto;
border: 4px solid #4B4B4B;
padding: 10px 5px 5px;
position: relative;
width: 90%;
min-width: 760px;
}
#header {
height: 130px;
margin-bottom: 15px;
}
#header h1 {
width: 350px;
height: 130px;
float: left;
font-size: 1px;
color: #FFFFFF;
background-image: url(headernew.gif);
}
#header p {
margin: 0;
width: 372px;
height: 117px;
float: right;
margin-top: 13px;
font-size: 1px;
color: #FFFFFF;
background-image: url(tel.gif);
}
#nav {
width: 120px;
padding-bottom: 87px;
float: left;
background-image: url(service.gif);
background-repeat: no-repeat;
background-position: left bottom;
position: relative;
margin-right: 5px;
}
#nav li {
list-style: none;
border-bottom: 1px solid #FFF;
}
#nav a {
color: #FFFFFF;
background-color: #3F5FC1;
display: block;
padding: 10px;
text-decoration: none;
font-weight: bold;
line-height: 17px;
}
#nav a:hover {
color: #3F5FC1;
background-color: #CACACA;
}
#contentwrap {
margin: 0;
border: 1px solid #8488B0;
overflow: hidden;
padding: 5px 5px 5px 10px;
}
#detailbar {
width: 270px;
float: right;
margin-left: 5px;
}
#detailbar img {
margin-bottom: 1em;
}
#content {
background-color: #CACACA;
background-image: url(tl.gif);
background-repeat: no-repeat;
background-position: left top;
overflow: hidden;
border-top: 5px solid #FFF;
}
#content .tr {
background-image: url(tr.gif);
background-repeat: no-repeat;
background-position: right top;
}
#content .bl {
background-image: url(bl.gif);
background-repeat: no-repeat;
background-position: left bottom;
}
#content .br {
background-image: url(br.gif);
background-repeat: no-repeat;
background-position: right bottom;
padding: 10px 5px;
position: relative;
}
#content h2 {
font-size: 16px;
letter-spacing: 1.5px;
color: #3F5FC1;
text-decoration: underline;
margin: 0 0 10px 4px;
}
#content .fineprint {
color: #3F5FC1;
font-size: 10px;
font-family: tahoma;
font-style: italic;
}
#footer {
background-color: #333333;
color: #FFFFFF;
text-align: center;
padding: 5px;
margin-top: 5px;
}
#footer p {
margin: 0;
font-size: 12px;
}[/CODE]
[CODE]#wrapper {
width: expression((this.parentNode.offsetWidth < 845) ? "760px" : "90%");
}
#nav li {
float: left;
width: 100%;
}
#contentwrap, #content, #nav a {
height: 1%;
overflow: visible;
}
[/CODE]
[CODE]<!--[if [COLOR="Red"]lt[/COLOR] IE 7]>[/CODE]
which means if [B]less than[/B] IE7. The site seems to work fine in IE6 for me now.0.1.9 — BETA 5.19