CSS Hover effect within Modal popup issue -


i have created web page modal popup control. within control dynamically build html display data. within of tables tags have following:

<td> <a href="#"><span>s</span><span class="pop">description</span></a> </td> 

i want create popup effect when hovering on tag. css is:

a .pop {     display:inline;     position:absolute;     visibility: hidden;     background-color: #ffffff;     border: solid 2px #000000;     padding: 5px;     margin: 0 0 0 10px;     color: #000000;     text-align: left;     font-weight: normal; }  a:hover .pop {     visibility: visible; } 

this works when use control within standard html page. appears work within modal popup control, until need scroll down modal control when table data larger modal window.

the hover effect appears not working. think because im using "position":"absolute" ".pop" class, , hover effect working, position no longer relative tag because have scrolled through page.

i not able round , killing me. need dynamically reposition control using "mouseover" event, or can achieved via css, , i’m missing / being novice.

karl

try adding this:

a { display:block; position:relative } 

this make span.pop positioned relativily tag in.

example: http://jsfiddle.net/r4erw/


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -