Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4018194
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:57:10+00:00 2026-05-20T09:57:10+00:00

Hello pls could someone help… I’ve tried everything to get this to work in

  • 0

Hello pls could someone help… I’ve tried everything to get this to work in IE (typical) – I need to get a span to hover with a background image, with multiple background hover images also in the same div. It’s for a nav bar.

Here’s the code:

<div class="menu2">
     <ul> 
    <li><a href="#"><span><img src="/images/Structure/home-active.png" /></span></a></li>
    <li><a href="#"><span>Directory</span></a></li>
    <li><a href="#"><span>Events</span></a></li>
    <li><a href="#"><span>Jobs</span></a></li>
    <li><a href="#"><span>Property</span></a></li>
    <li><a href="#"><span>News</span></a></li>
    <li><a href="#"><span>Community</span></a></li>
    <li><a href="#"><span>Travel</span></a></li>
    <li><a href="#"><span>Advertise</span></a></li>
    <li><a href="#"><span>Login</span></a></li>
    </ul>
  </div>

And the CSS:

/* Main Menu */
.menu2 {clear:both;position:relative;z-index:2;margin:0 auto;width:100%;height:41px;max-width:1280px;}
.menu2 ul.first {float:left;}
.menu2 li {float:left;height:41px;background:transparent url(/images/menu-icons/test/left.png) left top no-repeat;margin:0 5px;}
.menu2 li a {padding:0 4px;float:left;color:#222222;font-size:14px;line-height:40px;font-weight:bold;background:transparent url(/images/menu-icons/test/right.png) right top no-repeat;}
.menu2 li a span {height:41px;padding:0 8px;display:block;background:transparent url(/images/menu-icons/test/repeat.png) repeat-x;}

.menu2 li:hover {text-decoration:none;background:transparent url(/images/menu-icons/test/hov-left.png) left top no-repeat;}
.menu2 li a:hover {text-decoration:none;background:transparent url(/images/menu-icons/test/hov-right.png) right top no-repeat;}
.menu2 a:hover span {display:block;color:#fff;background:transparent url(/images/menu-icons/test/hov-repeat.png)repeat-x;}

As you can see the very last style in the CSS is where it’s not working…

This is what’s happening (view in ie obv.) http://www.dev.inside-guides.co.uk/brentwood/pages/news.html

Any help would be amazing..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:57:11+00:00Added an answer on May 20, 2026 at 9:57 am

    There appears an issue with the selector .menu2 a:hover span. Try replacing that line with:

    
    .menu2 li a:hover span {display:block;color:#fff;background:transparent url(/images/menu-icons/test/hov-repeat.png) repeat-x;}
    
    

    Note the extra ‘li’. It should overwrite the style defined by .menu2 li a span ...

    Also, you may want to add a space between the ) and repeat-x.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello can anybody solve this please I'm creating the object in the action class
Hello I am compiling a program with make but I get the error of
Hello I am working with a simulator that uses rcS scripts to boot, this
Hello! There is a controller and an action which receives one param through GET,
Hello I need to generate a report which would include both data and a
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello again ladies and gents! OK, following on from my other question on ASP.NET
Hello I was writing a Regular Expression (first time in my life I might
Hello , I am currently working on the student association's website. The student's association
Hello all you helpful folks @ stackoverflow! Best resources for Java GUI's? Looking at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.