1

https://codesandbox.io/s/m3ljr4zl8p

example.js

I wasn't expecting column1 data to start overlapping into column2's instead of going down as it is now exceeding the grid column width.

What is the solution for this?

1 Answer 1

2

Columns are not overlapping. It's your <p> element takes more space than columns.

Add this style to it:

word-break: break-word;

Before word-break:

before

After word-break:

after

Sign up to request clarification or add additional context in comments.

2 Comments

But if I had used simple css grids. This wouldn't be happening, right?!
@Shad that would happen in any scenario. You used long word, if you don’t want it to go over it’s parent break the word or use overflow: hidden. As you saw on my screenshots your grid was always good

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.