You should understand that browsers only use scrolling when they understand the size (i.e. height and width) of the content larger than the size specified for it. In your case, the height specified for the div is 100%. This effectively tells the browser to continue to increase the size of the div to the full content completely. Therefore, this creates a situation where scrolling is not needed, as the browser βfitsβ all the content in this div.
So, if you want the div (or paragraphs contained in it) to be scrollable, you would need to specify the height, and then tell the browser to scroll through content that will not fit the specified size.
I'm not sure if you want to scroll through individual βparagraphsβ or the entire div (which contains these paragraphs) to scroll. In any case, you will need to specify a fixed height for scrolling, which will be useful. Your paragraph tag should have the following CSS to it:
p { height: 200px; overflow-y: scroll; }
Here is an example: http://jsfiddle.net/y49C3/
If you want your div called "content" to be scrollable (as opposed to paragraphs), you would need to apply the above CSS to the div.
.content { overflow-y: scroll; height: 500px; }
You can see it here: http://jsfiddle.net/qF7Mt/1/
I tested this in Firefox (29) and IE 10 and it works great !!!
Hope this helps !!!
Satwik nadkarny
source share