Hi. I have a problem with my site. I have a page of
CSS, and two pages of code. One displays correctly, the other doesnt display the menu tabs at the top of the page, yet they are the same, and the images are loaded on the server, and I am positive the paths are correct. To try it, look at
http://www.homecallplus.co.uk/newsite At the top should be a menu bar but it doesnt display (the text is in white but no image showing.) now try
http://www.homecallplus.co.uk/newsit...s/products.htm and you ll see this is fine. I will now show the relevant code for the two pages and the
css also: Please help!!
Products.htm
- Code: Select all
<div id="head_menu">
<ul>
<li><a href="../index.htm" title="Home" class="off">Home</a></li>
<li><a href="about.htm" title="Tenants" class="off">About</a></li>
<li><a href="works.htm" title="Landlords" class="off">How It Works</a></li>
<li><a href="products.htm" title="Property Managers" class="on">Products</a></li>
<li><a href="apply.htm" title="Commercial" class="off">Apply</a></li>
<li><a href="#" title="Media" class="off">Media</a></li>
</ul>
</div>
index.htm
- Code: Select all
<div id="head_menu">
<ul>
<li><a href="index.htm" title="Home" class="on">Home</a></li>
<li><a href="pages/about.htm" title="Tenants" class="off">About</a></li>
<li><a href="pages/works.htm" title="Landlords" class="off">How It Works</a></li>
<li><a href="pages/products.htm" title="Property Managers" class="off">Products</a></li>
<li><a href="pages/apply.htm" title="Commercial" class="off">Apply</a></li>
<li><a href="#" title="Media" class="off">Media</a></li>
</ul>
</div>
CSS:
- Code: Select all
#head_menu{
position: relative;
width: 850px;
height: 30px;
}
#head_menu ul{
margin: 0px 0px 0px 5px;
padding: 0;
list-style-type: none;
}
#head_menu li{
width: 140px;
text-align: center;
vertical-align: center;
padding: 0;
height: 30px;
float: left;
border: #000000 0px solid;
line-height: 250%;
}
a.on {
color: #fff;
display: block;
width: 140px;
height: 30px;
text-decoration: none;
background-image: url(../newHomeCall+Site/images/homecall_menu_on.gif);
}
a:hover.on {
color: #fff;
background-image: url(../newHomeCall+Site/images/homecall_menu_on.jpg);
}
a.off {
color: #fff;
display: block;
width: 140px;
height: 30px;
text-decoration: none;
background-image: url(../newHomeCall+Site/images/homecall_menu_off.jpg);
}
a:hover.off {
color: #fff;
background-image: url(../newHomeCall+Site/images/homecall_menu_on.jpg);
}
Lets see if theres anything that can be done here... I want index.htm to display the images.