mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
1.2 KiB
1.2 KiB
Exercise
If you don't already have the app running, start it with npm run static from the root of the frontend-bootcamp folded and go to Todo HTML/CSS Exercise Page
Open the index.html file in this exercise folder.
- Add an unordered list with class
todosto the main section - Add 4
list items(li) with classtodoinside of that list with the following content - Add this content to each of the 4 list items
<label><input type="checkbox" /> <span class="title"> Todo </span> </label> - Add a span and a button to your
footer - Span content should be
<i class="remaining">4</i> items leftand button should sayClear Completedand have a class ofsubmit - Go into the CSS file and add
display: flexto the footer. Also addflex-grow:1to the span inside of the footer
Hint: Look back at the CSS demo to see the various ways you can use selectors to target existing HTML
There are many strategies for creating and organizing class names in a large application, like bem, OOCSS and SMACSS. This lesson is focused on using CSS selectors, not the optimized way to scale your CSS.