html - Why does the scrollbar not work in IE? -


i have created scrollbar , works fine in google chrome , firefox not in ie. have feeling has line-height property.

my code:

html:

<div id="scrollbar"><br /></div> 

css:

#scrollbar {     margin-top: 10px;     height: 220px;     float: right;     overflow-y: scroll;     line-height: 403px; } 

here jsfiddle.

anyway work in ie?

change <br/> &nbsp;. ie picks non-breaking space bit better <br> tag. http://jsfiddle.net/s9sycey1/3/


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -