tags:

views:

50

answers:

2

Hi,

I've got a div where the content of the div "escapes" the div.

if for example i put in something like ssssssssssssssssssssss (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;
+3  A: 

Add the following to the CSS:

word-wrap: break-word;

Also see https://developer.mozilla.org/en/CSS/word-wrap

BalusC
For the browsers which doesn't support it (the ancient ones), you may want to consider to add an `overflow-x:scroll;` though.
BalusC
A: 

Set the overflow property:

http://www.w3schools.com/Css/pr_pos_overflow.asp

joshowen