+ 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?
10 Answers
+ 4
Overflow:scroll or overflow:hidden or overflow:auto
+ 2
u can set a minimum height and width then, like div{min-width:300px;min-height:250px;}
+ 2
Shivam Don't spam unnecessary if you don't have anything to say related to question
+ 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
+ 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.
+ 1
YoBoi
Yes,I think this will work so far.
Also,I think media query might come in handy.whatcha say?
+ 1
Oh Boi!
Yeah most sites look pretty different on mobile and desktop
+ 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.
+ 1
Shivam what's that?
- 1
But what if I dnt want a scroll bar and defintiely not hidden?