0

I am using CSS Grid for my website. I would like to know how to make wrapper (divs) fit the screen size?

4
  • which grid are you using ? your own ? chat does the code looks like ? are you using float ? inline ? tell us more Commented Mar 10, 2018 at 19:18
  • CSS grid, css-tricks.com/snippets/css/complete-guide-grid I am not using float. Commented Mar 10, 2018 at 19:22
  • It seems to be in your ".container" declaration, with the "grid-template-columns" property. Have you try to change those values ?? Commented Mar 10, 2018 at 19:25
  • I fixed my problem. I would like to ask how to add rows into a column? Commented Mar 11, 2018 at 16:20

1 Answer 1

1

Set the width of the wrapper (divs) to be 100%.

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

1 Comment

works, but why we need to put the grid in a container ? Can you tell us more about the principles behind the scene please ?

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.