My text inside the containing div overflows it from the sides where it should be automatically wrapped.
Html:
<!DOCTYPE HTML> <html> <head> <title> Welcome to my site </title> <link rel=stylesheet type="text/css" href=global.css> </head> <body> <div id="main"> <p>jjfaljfejjfkadjf;lj;jmvwutpvwjfjdsjfklsdkdfjklsjfkljwjeiojfklslfkjsvfoiwjeorfjviw nfwvfjojwkdsklflskjfvwiernvejveurvnwejfkdsjwjjrfjiowjeionvkjlksjdfkljkljdwijiodjfiovnwjoiejoijfiojkjsljfdkjslfiejskdklfjlksjfeijskdjfklsjkldjfwjnfklsjfwoevjnwfdjshfk fsdkjfsjdfkjksjdfkjsljfdkljskl</p> </div> </body> </html>
And this is css
html { padding:0; margin: 0; } body { background: #E4E4E4; height:100%; width:100%; } #main { display: block; background: white; width:960px; margin: 0 auto; position: relative; padding: 5px 5px; }
And here is what is displayed:

I read other questions, but none of them solves my problem. The fact is that the text does not overflow the bottom of the div. Is this somehow related to the width I set for the div?
source share