开发者

content does not stay inside div

开发者 https://www.devze.com 2022-12-29 03:58 出处:网络
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 o

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号