Walrus
Walrus

Reputation: 20464

CSS error with position and overflow on all browsers

I have set up a scrollable div that until recently was scrolling and now appears to be jammed at the top. The only difference is the addition of position: relative;.

Here is a FIDDLE

http://jsfiddle.net/PMzcB/

Any ideas why?

Upvotes: 0

Views: 51

Answers (2)

Sparky
Sparky

Reputation: 98738

The z-index:-1; was the problem.

http://jsfiddle.net/PMzcB/13/

Upvotes: 0

Tank
Tank

Reputation: 1006

Change z-index to a positive value.

Upvotes: 2

Related Questions