+ 1

How do I fix paragraph overflowing out of the box?

My paragraphs are flowing out of the box as i resize the browser to mobile view.how do I fix it?

12th Jun 2020, 5:39 PM
Oh Boi!
Oh Boi! - avatar
10 Réponses
+ 4
Overflow:scroll or overflow:hidden or overflow:auto
12th Jun 2020, 6:12 PM
Abhay
Abhay - avatar
+ 2
u can set a minimum height and width then, like div{min-width:300px;min-height:250px;}
12th Jun 2020, 7:14 PM
YoBoi
+ 2
Shivam Don't spam unnecessary if you don't have anything to say related to question
13th Jun 2020, 9:17 PM
Abhay
Abhay - avatar
+ 2
min width and min height all that will work for elements ,they will change size according to screen but i don't think anything works for text except overflow thing
13th Jun 2020, 9:19 PM
Abhay
Abhay - avatar
+ 2
Oh Boi! Try setting padding in the container that has the text, along with setting an overflow property. I also suggest trying this in inspect to see the result and then applying what works to your code. You can use a media query to reduce the font size for this as well, and then use another media query to set it back once there is enough room for the text to exist.
14th Jun 2020, 2:10 PM
Joe DeSoto
Joe DeSoto - avatar
+ 1
YoBoi Yes,I think this will work so far. Also,I think media query might come in handy.whatcha say?
12th Jun 2020, 7:19 PM
Oh Boi!
Oh Boi! - avatar
+ 1
Oh Boi! Yeah most sites look pretty different on mobile and desktop
12th Jun 2020, 7:35 PM
YoBoi
+ 1
YoBoi well.Setting up the min and max width didn't work either.But settles down with overflow:auto for the time-being.Thanks anyways man.
13th Jun 2020, 9:14 PM
Oh Boi!
Oh Boi! - avatar
+ 1
Shivam what's that?
13th Jun 2020, 9:15 PM
Oh Boi!
Oh Boi! - avatar
- 1
But what if I dnt want a scroll bar and defintiely not hidden?
12th Jun 2020, 6:46 PM
Oh Boi!
Oh Boi! - avatar