A QUICK AND DIRTY BENTO/GRID TUTORIAL

Set-up

Set-up is probably the most important part. Start by making a div with class="bentocontainer". Or whatever will help you remember that it's the full scope of the "bento box".

(i forgot to tell you to draw your ideal grid first lol)

Anyway make all the inner containers you need, and give them unique classes you'll remember. Then set style to grid-area:[class]Style or [class]-style or whatever works for you!

Inspect the HTML to see all my divs

Bento Creation

Copy this:

.bentocontainer{

display: grid;

grid-template-columns: repeat(3, 1fr);

grid-auto-rows: auto;

grid-template-areas:

"pinkstyle pinkstyle pinkstyle"

"yellowstyle bluestyle greenstyle"

"tanstyle tanstyle orangestyle" }

you can replace with your own styles now

Ok now I'll tell you what each part means:

Code Explained

After this you will probably have to add padding or margins to your text. You can also add a gap or border.

If you want a gap it needs to go in your bento container!!!

THAT'S IT YAYYYY OK HERE ARE MY SOURCES TEEHEE: "CSS Grid Course-The Only Grid Tutorial You'll Ever Need by Coding2GO", my beautiful mind, and developer.mozilla.org.

P.S. the unique classes are so you can style them individually as well. I used background-color and border.

A certified Medjed post -⁠ᄒ⁠ᴥ⁠ᄒ⁠-