2

Our problem: I make one div and make one other div for hover this div and I use absolute position, but parent div make scrollable div then this absolute position div is not scroll . so how to scroll this div in scrollable div?

I make hover div like this :

#hover {
height: 56px;
    left: 158px;
    top: 156px;
    width: 56px;
    border: 2px dashed red;
    display: block;
    position: absolute;
}

check this link :http://jsfiddle.net/kamlesh0606/yrjPA/

see hover div( red border) in jsfiddle link .

I make one hover div on other div in scrollable main div. So I make hover div using absolute position. but I got one problem: when main div scroll then this hover div is not scroll like relative div. So how to scroll hover div in scrollable div?

2
  • i make one hover div on other div in scrollable main div. see in link. so i make hover div using absolute position . but i got one problem : when main div scroll then this hover div is not scroll like relative div. so how to scroll hover div in scrollable div?
    – Kamlesh
    Aug 28, 2012 at 12:13
  • what actually is the question? Aug 28, 2012 at 12:13

1 Answer 1

5

You can try this

<div style="position: relative;">
    <div id="hover">
    ...
    </div>
</div>

you must put your absolute div in relative div

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.