CSS Grid text stays in grid.box

I’m trying to figure out how I can have certain text stay in my box and doesn’t go outside the box.

If there is too much text it should automatically format it self on the next line and only expand the box size of the grid in the vertical axis or row depth.

And not go thru the box or expand the box horizontally.

I hope this is clear ^^

Hi, can you show us the code? :slight_smile:

What is the CSS code for your box?
Maybe you can use the overfow property (more info)

Depends on what you need, really.

Look into box-sizing, overflow, overflow-wrap, word-break.

2 Likes

Word-break!! That solved the issue.