โ† Lessons BUILDER PATH

๐ŸŽจ Pixel Art

Lesson 20 of 20
๐ŸŒŠ
Themed Universe
Ocean Lab
CSS Grid is like graph paper โ€” arrange items in rows and columns! Build pixel-art sea creatures, color by color! ๐ŸŸ
๐ŸŽฏ Missions Day โœฆ
โ€ฆ
โ€ฆ
โ€ฆ
โ— โ— โ— pixel-grid.css CSS

  
pixel stage LIVE

๐ŸŒŠ Ocean Mission Step 1 of 5

โ€ฆ

๐Ÿ’ก Hint: โ€ฆ

๐ŸŽจ Pixel Art

In Button Builder you styled things with padding and border-radius. In Tag Match you learned HTML tags. Today you learn CSS Grid โ€” a tool that arranges things in rows and columns, like graph paper or a chessboard! And you'll use it to build your own pixel art sea creature! ๐ŸŸ

๐Ÿ“ CSS Grid Toolkit
.grid {
  display: grid; // turns this into a grid container
  grid-template-columns: repeat(3, 40px); // 3 columns, each 40px wide
  gap: 2px; // space between cells
}
โ†’ Each cell becomes a pixel that YOU color! Tap a cell to paint it!
๐Ÿ“display: grid turns any container into a grid. Like turning a blank page into graph paper!
๐Ÿ”ฒgrid-template-columns sets how many columns (and rows). repeat(3, 40px) = 3 columns, each 40 pixels wide!
๐ŸŽจClick a cell to paint it with your chosen color. Build a fish, a turtle, or anything you imagine!
โœจEdit the gold box in the code โ†’ the grid updates live! Hit โœ“ Check to complete each mission.