CyberStars

CSS Recap

No new theory, just a challenge that uses space inside a box, round corners, colors that stand out, contrast, a grid and a media query.


Mission: Starship cards

What you will see: on a wide window, the cards stand in two columns, with a little space between them. Each card has its own background, round corners and space inside it. The status, like Docked, sits in a small colored badge. On a phone, the cards stand one under the other, each as wide as the list.

Soon, the tracker fills its list with a card for each starship, made from your template. Give those cards a look before they arrive, so the page is ready for them.

  • Each starship card (.ship) is at least 60px tall.
  • It has at least 12px of space inside it at the top and on the left.
  • It has round corners (at least 8px), and a background that stands out from the page's.
  • The status stands out from the name with its own background.
  • The name, the class and the status are each easy to read on what is behind them, with a contrast of at least 4.5, in the light colors and in the dark ones.
  • On a wide window, the list stands in two columns, at least 8px apart, with the cards' tops lined up in a row.
  • On a phone, it's one column, with the cards at least 8px apart, each one as wide as the list.
  • Nothing comes out sideways.
  • The skeleton cards stand the same way, because they are items of the same list.

The cards are items of the list ships, so the list is the grid.