css hover not working under IE10

Hi,

I've a problem in ie10 with this code (in chrome it's working perfectly):

html:

<div class="StockDisplay">
        <div class="altstock">My text</div>
</div>

css:

.StockDisplay{   background-image: url(../img/information.gif);}
.altstock{display:none; }
.StockDisplay:hover .altstock{    display:block;}


can you help me please

Thanks
bruno_boccaraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
The code works fine - though I don't know how you intend to hover a collapsed div - it has no height to hover over
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bruno_boccaraAuthor Commented:
I post a simplified code to explain  my issue.

the real css code is:


.StockDisplay{
    background-image: url(../img/information.gif);
    width:16px;
    height:16px;
}
.altstock{
    position:absolute;
    display:none;
    margin-left:25px;
    background-color: white;
    border: #333 1px solid;
}


and it's perfectly work under chrome

The issue is only Under IE10 ...
0
GaryCommented:
Still works fine.
Do you have a link to the page - there must be something else you are missing out.
0
bruno_boccaraAuthor Commented:
the page is in a software working Under browser and it is intranet....

and the page load a lot of thing !

I will try to upload you more informations
0
COBOLdinosaurCommented:
absolute positioning and the parent has no position.  Therefore the position is not within stock display.  If it works in Chrome then it is because Chrome is not positioning to the standards and IE10 which means that alstock is probably being displayed somewhere else on the page;perhaps top left.  Of course if lots of things get loaded maybe it is under one of them.

Try adding position:relative to the parent div.

Cd&
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.