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.

enter image description here

here's fiddle

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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -