Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
list background image problem
01-12-2011, 09:50 AM
Post: #1
list background image problem
Hi Folks,

I'm trying to get a UL to stretch the width of the page, 40 pixels high, with a transparent background. It works fine in IE7, but FF has a mind of its own.

Can anyone please help?

Ive attached the view in each browser.

Code is below, any help much appreciated.

#navigation {
width:720px;
background-color:transparent;
height:38px;
display:block;
}
#navigation li {
list-style: none;
background-color:transparent;
float: left;
}
#navigation a {
text-decoration: none;
background-color:transparent;
color: #FFFFFF;
float: left;
background-image: url(images/tabs-right.jpg);
background-position: right top;
font-size: 100%;
font-weight: bold;
text-transform: uppercase;
}
#navigation a span {
background-position: left top;
background-image: url(images/tabs-left.jpg);
background-repeat: no-repeat;
float: left;
cursor: pointer;
padding-top: 12px;
padding-right: 15px;
padding-bottom: 8px;
padding-left: 15px;
background-color:transparent;
}
#navigation a:hover, #navigation .current a {
background-position: right -50px;
color: #000000;
}
#navigation a:hover span, #navigation .current a span {
background-position: left -50px;
border-bottom: 0;
}
<div id="header">
<h1><span>Monster Metals</span></h1>

<ul id="navigation">
<li> <a href="index.php"


> <span>Home</span> </a> </li>
<li
> <a href="faq.php" > <span>FAQ</span></a> </li>

<li > <a href="products.php" > <span> Products</span> </a> </li>


<li > <a href="contact.php" class='current'> <span>Contact</span> </a> </li>
</ul>
<br style="clear:both;" />

</div>

Web Designers Directory | Advertise Web Design Business | Website Design
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
list background image problem - justinOrel - 01-12-2011 09:50 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)