The CSS `overflow` property defines, how a parent-element should handle the case when child-elements exceed the parent's dimensions. E.g. it could show the overflowing content or clip it.
27
votes
1answer
42k views
Scroll Position of div with “overflow: auto”
Given this HTML snippet:
<div id="box" style="overflow:auto; width:200px; height:200px; border:1px solid black;">
...
16
votes
4answers
4k views
Forcing child to obey parent's curved borders in CSS
I have a div inside of another div. #outer and #inner. #outer has curved borders and a white background. #inner has no curved borders and a green background. #inner extends beyond the curved ...
7
votes
2answers
2k views
Why does “overflow-y:hidden” affect the visibility of items overflowing on the x axis?
Consider this example:
http://jsfiddle.net/treeface/P8JbW/
HTML:
<div id="test">
<img src="http://ycombinator.com/images/y18.gif" />
</div>
CSS:
#test {
...
0
votes
1answer
719 views
Setting overflow property with twitter bootstrap thumbnails
I am trying to display images of varying height and width in thumbnails of fixed dimensions. To achieve this, i am attempting to resize the image without affecting the aspect ratio, and then hiding ...