html - bottom padding on scrolling fixed-height div is ignored in firefox -
i have div fixed height , padding attribute. set overflow
auto
let browser add scrollbars. want able scroll down until whole bottom padding visible, gets truncated entirely.
css:
#content { padding: 40px; width: 250px; background-color: #ccc; overflow: auto; }
html:
<div id="content"> lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. @ vero eos et accusam et justo duo dolores et ea rebum. stet clita kasd gubergren, no sea takimata sanctus est lorem ipsum dolor sit amet. lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. @ vero eos et accusam et justo duo dolores et ea rebum. stet clita kasd gubergren, no sea takimata sanctus est lorem ipsum dolor sit amet. </div>
edit: found out misbehaves on firefox (29.0.1 me)
you use margins instead of padding, wrap text in paragraph tags , change width accomodate difference. see here
#content, #content2 { width: 330px; background-color: #ccc; overflow: auto; } #content { height: 200px; float:left; } p { margin: 40px; }
Comments
Post a Comment