I've got a problem with overflow in a div nested inside another div which has display: table-cell style. I'm not sure why content from #left-wrapper is not cropped (hidden) when it exceeds height of #left-wrapper. Thanks in advance for any advices. Fiddle link: http://jsfiddle.net/bpbHY/1/
Here's my markup:
<div id="wrapper">
<div id="left">
<div id="left-wrapper">
<ul>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item </li>
<ul>
</div>
</div>
<div id="center">Center content</div>
<div id="right">right</div>
</div>
CSS:
#wrapper {
display:table;
width:100%;
height:100%;
}
#wrapper > div {
display:table-cell;
height:100%;
}
#left {
width:70px;
min-width:80px;
height: 100%;
background-color:pink;
}
#left-wrapper {
overflow: hidden;
height: 100%;
}
#center {
background-color:green;
min-width:200px;
}
#right {
width:50px;
min-width:50px;
background-color:red;
}
li {
line-height: 80px;
}
body, html {
width:100%;
height:100%;
}