Can I get another pair of eyes on this?  CSS and IE

Can someone please have a look at this code, it is driving me nuts...
It isn't really a JSP problem, more of a CSS problem with IE 6 I think... anyway here is a simple version of the code:
<html>
  <head>
    <link type="text/css" rel="stylesheet" href="simpTest.css"/>
    <style type="text/css">
           .defaultsidebaritem
               background : transparent url(/HomeMVC/images/inactive.gif) no-repeat scroll center;
          .defaultsidebaritem#moused
               background : transparent url(/HomeMVC/images/hover.gif) no-repeat scroll center;
               color:red;
          .areasidebaritem
               background  : transparent url(/HomeMVC/images/inactive.gif) no-repeat scroll center;
          .areasidebaritem#moused {
                 background  : transparent url(/HomeMVC/images/hover.gif) no-repeat scroll center;
     </style>
  </head>
  <body>
    <div class="sidebar">
      <div class="defaultsidebaritem" id="default-1" onMouseOver="this.id='moused';"
              onMouseOut="this.id='default-1';" onClick="document.location='/HomeMVC/default.do';">
        <div class="sidebartext">The Luke's Home Page</div>
      </div>
      <div class="areasidebaritem" id="web-1" onMouseOver="this.id='moused';"
           onMouseOut="this.id='web-1';" onClick="document.location='/HomeMVC/index.do';">
        <div class="sidebartext">Start Here</div>
      </div>
      <div class="defaultsidebaritem" id="default-7" onMouseOver="this.id='moused';"
              onMouseOut="this.id='default-7';" onClick="document.location='/HomeMVC/html/index.do';">
        <div class="sidebartext">HTML - How To</div>
      </div>
    </div>
  </body>
</html>
(the CSS code)
.sidebar
     width   : 200px;
     float   : left;
     clear     : left;
.defaultsidebaritem
     height     : 30px;
     width      : 150px;
     cursor     : pointer;
     float:left;
     clear:left;
.areasidebaritem
     height     : 30px;
     width      : 150px;
     cursor     : pointer;
     margin-left: 10px;
     float:left;
     clear:left;
.sidebartext
     background-color : transparent;
     float            : left;
     width            : 150px;
     height            : 20px;
     margin-top       : 6px;
     text-align      : center;
     color           : white;
.areasidebaritem#moused {
}Basically, is is supposed to be a side bar where when you mouse over the buttons, the div'sbackground image changes.
In Mozilla this works fine. In IE, exactly as written, only the first and the last images will have the change in image.
1) Only the <div class="areasidebaritem"> does not work, the other two do.
2) If I move the style for .areasidebaritem#moused to an external CSS, then it works. I cut and paste it from the external css into my JSP and it no longer does.
3) The javascript involved is fine: alerts placed around show correct ids before and after the event is fired.
4) No style inside the areasidebaritem#moused definition will be changed (as long as the style sheet is included in the .jsp file, if it is inside an external .css everything works). The .areastylesheet styles (class without the id) work correctly.
5) If I change the <div>'s class to defaultsidebaritem it works fine.
6) If I change the <div>'s class to anything else (like asidebaritem) and update the css involved to include those classes, it still won't work
It can't be a missing image problem, because as I have it now, defaultsidebaritem and areasidebaritem use the same images.
Any clue as to why IE might be screwing around here? I am just about ready to include a caption saying "IE users will be missing some functionality" or some such... because I honestly do not see why the middle button won't work :-(
Thanks for any help yall might be able to provide...

Observations after some fiddling with it:
- only the first #moused declaration in the style block seems to work
- If you swap the order of the declarations, the other one works.
- If you declare a new style block, and put the second rule in there, it works
- If you use a different id eg #moused2 it also works.
I would probably put it in the category of browser bug.
Cheers,
evnafets

Similar Messages

  • I accidentally deleted Garageband on my MacBook Pro, version 10.6.8.  The new version of Garageband is only compatible with 10.9 and above.  Is it possible to still get the older version?  OR, can I get another copy of the startup CD  for my computer

    I accidentally deleted GarageBand on my MacBook Pro, version 10.6.8.  The new version of GarageBand is only compatible with 10.9 and above.  Is it possible to still get the older version?  OR, can I get another copy of the startup CD that came with my computer so that I can reinstall GarageBand?

    The new version of GarageBand is only compatible with 10.9 and above.
    If your Mac can run MacOS X 10.6.8, it probably can be upgraded to Yosemite, if you don't have to stick to Snowleopard for other reasons.
    Is it possible to still get the older version?
    Amazon or eBay are still selling iLife '11 installer disks, and you could reinstall GarageBand from these DVDs. But it will be expensive.
    Have you checked your backups, if you can restore GarageBand from a backup?
    OR, can I get another copy of the startup CD that came with my computer so that I can reinstall GarageBand?
    Sometimes the AppleStore Support will replace missing installer CDs for a fee.

  • Where can I get another install disk for my mac book pro?

    Where can I get another install disc for macbook pro?

    That procedure has changed in 10.7:
    Mac OS X 10.7 Help: Reset a login password

  • How can I get another phone to print on my printer

    how can I get another phone to print on my printer

    Which printer?
    Which Phone?
    What connection type?
    Please add some more details and then we will be able to assist you.
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • I lost all my purchased songs when my hard drive.  Can I get another copy from Apple?

    I lost all my purchased songs when my hard drive.  Can I get another copy from Apple?

    Quite possibly, at least assuming you are based in the US. Install the latest build of iTunes, sign into the iTunes Store and click the Purchased entry in the Quck Links panel. Here in the UK I only get tabs fro Apps and Books but, if I understand correctly, you should also get a tab for Music. Click on the Not in My Library button and you should be able to download your purchases again.
    tt2

  • I lost my Hard disk and had to replace it, how can I get another copy of lion OS, P.S. I bought my macbook pro with preinstalled Lion OS

    I lost my Hard disk and had to replace it with a new one, how can I get another copy of lion OS, as the guy at the serive center installed 10.6 for me.
    P.S. I bought my macbook pro with preinstalled Lion OS

    If you have a way to wipe 10.6.8 off, you can then reboot your machine (with no OS) and since your system came preinstalled with Lion, Internet Recovery should occur which will boot to Apple's servers into a Recovery HD for you to redownload and install Lion.
    To be safe I would first make a clone of the current installation using Carbon Copy Cloner or SuperDuper!. This way you have a way to recover.

  • After updating iPod to iOS 5.0, cannot get into Game Center with previous nickname. It says my nickname is already in use by another account.  Why did this happen and how can I fix this with my old nickname and its data?

    After updating iPod Touch to iOs 5.0, I cannot get into Game Center with previous nickname.  The screen says my nickname is already in use by another account.  Why did this happen and how can I fix this so I can still use the same nickname?

    Did you haveany problem with updating to iOS 5? It soundsl like the update did not correctly restore from the backup that iTunes mnakes as the fisr step of the update.

  • My mac os install cd1 is scratched how can I get another one.

    HI Mac Folks,
    My mac os install cd1 is scratched. how can I get another one?
    MY computer won't start again. I have tried several tips (safe mode, single user ...) without success. when I attemp to boot on CD1 while pressing C key to try a repair, the computer won't boot (broken apple displays on my screen). After many actions to sort the issue out, I would like to reinstall my Macbook 2006 but I discovered that my mac os install CD1 is scratched, how can I get another CD?
    Thanks for your help.

    Apple may still supply the original restore CDs/DVDs for a nominal fee. Have a your serial number and model information available when you call them.
    AppleCare Support Phone Number: 1-800-275-2273
    open 6am to 6pm Pacific Time
    Apple Phone Sales 1-800-692-7753
    International Technical Support Numbers
    http://www.apple.com/support/contact/phone_contacts.html
    I am not sure why you can boot into diagnostic OK but not install from the cd. I think it is a dvd not cd. You sure you have the correct cd/dvd?
    You can boot in startup manager on your machine by holding down the option key when you poweron. This will give you a little more info. Click on what you want to boot the click on the right arrow.
    http://support.apple.com/kb/HT1310

  • HT1539 I accidentally tossed my redeem code in the trash while i was cleaning, how can i get another code for my digital copy?

    How can i get another 'Redeem Code' for my digital copy on Despicable Me movie. I lost or might have tossed away in trash thinkning it was nothing important. Im wanting to use the digital copy for my MacBook Pro. Thank you for your help!

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Most simple solution: restore from your backup. If you don't have a back up, now is a good time to start.
    What version of iPhoto? Assuming 09 or later
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    Regards
    TD 

  • I can't get to pair via Bluetooth?

    I can't get to pair via Bluetooth my iPhone to the iPad the iPhone doesn't recognize the iPad, only the hand free of the car.i have shut off the wifi, put it back on, shut off the data roaming put it back on, nothing. Any suggestions?

    And, exactly, what are you trying to do? Your phone won't pair with your iPad, by Bluetooth, unless you're trying to Tether...file transfer, by Bluetooth is not supported on any iPhone. So, unless you're trying to Tether, you can quit trying to pair...it won't.

  • HT1725 I  bought a song a few months ago on iTunes.  It no longer plays on my devices but clearly shows that it is downloaded, so I cannot re-download from the Cloud.  It just stops playing at about 1:00 mark.  Can I get another copy from iTunes?

    I bought a song a few months ago from iTunes.  I have been playing it for months and all of a sudden it stops at the 1:00 mark on all of my devices and no longer plays.  I can't re-download it because it already thinks it's been downloaded.  How can I get another copy of this song that I have already paid for?!

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copy of the track and try redownloading a fresh one. See the following document for instructions:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • Cannot verify account can I get another email sent

    Cannot verify account can I get another email sent

    Put in a request for another verification e-mail to be sent to you.
    Start here, change your country if necessary and go to manage your account
    Also check your Mail rules and filtering, the verification mail may be going to a junk folder or even being deleted altogether. You may also wish to contact your mail provider to see if their spam filters are removing the email before it gets to you.

  • Can I get another iPod?

    My iPod home button only works half the time, so it works for a bit then stop then works and so on. Can I get another iPod from the warranty?

    Same answer as I gave you in your other post.
    https://discussions.apple.com/thread/4264824?tstart=0
    If your iPod is under warranty, defective and not abused Apple will exchange it for a refurbished one. Make an appointment at the genius Bar of an Apple store.

  • I want to increase my wireless network coverage upstairs and to the other side of my house. I have an airport extreme down stairs, can I get another one upstairs and hard wire it in?

    I want to increase my wireless network coverage upstairs and to the other side of my house. I have an airport extreme down stairs, can I get another one upstairs and hard wire it in?

    Yes.
    It has been covered recently. I as interested in same question matter of fact but I will have to look up details or you could search.
    Bob Timmons has contributed to this question so look his up and find it as well.
    See this link;
    https://discussions.apple.com/message/18017606#18017606
    Also this;
    https://discussions.apple.com/message/18077215#18077215
    Message was edited by: WilliamNewMart, to add links and correct spelling.

  • I can not get the new updates because my start disc and hard drive are full, I need 1.98 GB.

    I can not get the new updates because my start disc and hard drive are full, I need 1.98 GB.

    Some folks recommend OmniDiskSweaper to allow you to review your stuff to find possible candidates to throw away.
    Even if you throw away some stuff and your desired "1.98GB", then what?  If that's the number you need for the update, you'll just use most or all of the reclaimed space with the update and you are right back to where you started.
    You don't specify what kind of machine you got but presumably it's a mac pro since you posted in the Mac Pro community.  In which case just get yourself another drive or two and move stuff around to free up your boot drive.
    [Perhaps you should hurry too since I expect hdd prices might be going up due to possible impending hdd shortages.]
    Finally, if some of those updates are major system updates you want extra drives for backups because I always recommend you never do major updates to your system without backups to that system.

Maybe you are looking for