Max width understanding problem | SoloLearn: Learn to code for FREE!

+2

Max width understanding problem

So i know that css supports max-width: ; but when i set the max width to 200px or something why does my text that is longer than 200px make that the whole body becomes more than my 200px that i set? its a little bit confusing. anybody can make a code example how i should do that? and by the whay if it works that the text isnt longer than 200px how can i make the text automaticly becomes a new line every single time its longer than 200px?

css

7/8/2017 2:46:04 PM

TrueJu

8 Answers

New Answer

+3

thank you for this example it helped me out :D

+1

thank you :D i'm doing my 3th game its a cookieclicker game i got bored so i decided to make something easy and funny :D but this max-width:; problem destroyed it lol

+1

I finished my game :D https://code.sololearn.com/WxYtcZA6Q4Mp/?ref=app