Ashwin Hegde
Ashwin Hegde

Reputation: 1771

overflow-y: scroll not working for iframe

I have an iframe in which I need a vertical scrollbar, using CSS.

I am using the following CSS:

.subject iframe {
    border:medium none;
    height: 40px !important;
    overflow-y: scroll;
    -ms-overflow-y: scroll;
}

The code works for Firefox and IE8, but not for IE9 and Chrome.

Upvotes: 0

Views: 1915

Answers (1)

btevfik
btevfik

Reputation: 3431

i don't know your problem but this works fine on IE9. height set to 40. and vertical scroll it is the same code. without -ms-overflow-y

http://jsfiddle.net/btevfik/WY8DP/

Upvotes: 1

Related Questions