Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

IE11 shows Vertical scroll bar on a div, even when width is 0px.

$
0
0

Hi,

I am facing an issue with IE11 where I have a div which has Vertical scroll bar. In some scenarios when the div width is 0px, the vertical scroll is still shown in the page which looks weird. 

I tested this with a simple html and css.. and saw the same behavior. With width 50%, we see a vertical scroll.. and with width 0px, the 

content is hidden, but the grayed out Vertical scroll is still seen.

HTML:

<div id='Parent'>
  <div id='Child' >
  </div>
</div>

CSS

#Parent {
  width:0px; /* altered */
/*  width:50%;*/
  background:red;
 
  height:400px; 
 

  }

#Child {
  background:green;
  width:98%; 
  height:600px; 
}

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>