I think your question is about why the text is going outside of the div
Your div has fixed dimensions of 200px by 200px.
If you want your divs to stay flexible while also keeping a minimum height of 200px, you could use “min-height: 200px” and “height: auto.”
If you prefer your div to always be 200px tall and want to hide the text that spills over, just add the class “overflow: hidden” to the div tag.
Skylar said:
@Nyle
I think using auto for the overflow will work well
Exactly! Even though we don’t fully know what the original person needs yet haha
Skylar said:
@Nyle
I think using auto for the overflow will work well
Exactly! Even though we don’t fully know what the original person needs yet haha
Right! The original person forgot to ask their question lol
Looks like the issue is with the overflow.
You could use:
overflow-y: auto;
This will add a scrollbar only if it’s needed.
Or, you can set the height to adjust automatically:
height: auto;
This way the element expands as needed without running into overflow issues.
Are you taking Angela Yu’s course on Udemy?