Nested Menu and Form
HTML / CSS
20 pts
Nested Menu and Form
The café menu has two levels of list. Style it with combinators and attribute selectors:
- Only the top-level items (direct children of
.menu):border-bottom: 2px solid #cbd5e1. Use.menu > liso the inner items get no border. - The inner items (
liinside anliof the menu): colour gray. - The text input:
border: 2px solid teal(select it withinput[type="text"]). - The submit button: background teal, text white (
input[type="submit"]).
Checklist
- Border only on the top-level items.
- Inner items in gray.
- Teal border on the text input.
- Teal submit button with white text.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
