CSS Recap
No new theory, just a challenge that uses the CSS of this part: fonts in boxes, a label above its box, the keyboard ring, marks for wrong answers, chosen and disabled choices, space and hierarchy, with what you know about boxes, colors and contrast.
On a real booking website, the form often sits on its own card, like a paper form on a desk. Your form goes across the whole page, on its night blue.
Mission: The booking card
What you will see: on a computer, the form is a card in the middle of the page, narrower than the page, with its own background. On a phone, the card fits the screen, and nothing goes past its edges. Everything you did in this part still works on it.
Your booking form has its style, but it sits right on the page's background, from one side of the page to the other.
- The form is a card: its background is different from the page's.
- On a computer, the card is narrower than the page, and in its middle.
- Every label, question (legend) and button has a contrast of at least 4.5:1 on the card.
- On a phone (375 pixels wide), the page fits the screen.
- On a phone, every box, list and button stays inside the card.
- On the card, the keyboard ring, the marks for wrong answers, the labels of the chosen choices and the look of the space walk still work.
Check the grey of the space walk on your card's color too.