Setting overflow:auto, yet not horizontal scrollbar is displayed

Posted by ikaushan on Stack Overflow See other posts from Stack Overflow or by ikaushan
Published on 2010-05-17T17:33:19Z Indexed on 2010/05/17 17:50 UTC
Read the original article Hit count: 200

Filed under:
|

Hi,

Why doesn't div with id "shouldHaveScrollBar" doesn't display a horizontal scrollbar:

<div style="overflow:hidden; 
            width: 300px; height: 300px; background-color:blue; color:white">

    <div>Some stuff</div>
    <div>Some other stuff"</div>
    <div id="shouldHaveScrollBar" 
         style="background-color:grey; 
                width: 100%; height: 100%; overflow-x:auto">
      <input type="text" size=200">
    </div> 
</div>

Thank you,

© Stack Overflow or respective owner

Related posts about css

Related posts about html