content does not stay inside div
I've got a div where the content of the div "escapes" the div.
if for example i put in something like sssssssssssssssssssss开发者_开发百科s (and so on :P) it just goes over the divs edge instead of breaking and continuing on the next line.
css:
#content {
position:absolute;
width: 855px;
padding: 195px;
padding-top: 0px;
Add the following to the CSS:
word-wrap: break-word;
Also see https://developer.mozilla.org/en/CSS/word-wrap
Set the overflow property:
http://www.w3schools.com/Css/pr_pos_overflow.asp
精彩评论