Make a page fit the screen
Connect CSS selectors and flexible layout to a readable page on a phone and a larger screen.
In this lesson
- It starts with a question. Three market cards have class="produce". What does the selector .produce target?
- The idea you will find. Connect the idea — Keep the HTML meaning while changing its presentation. A class can style repeated cards; an ID identifies one element. Relative widths can fit a container. On a narrow screen, fewer columns can preserve readable text. Check the real result: a flexible width does not by itself guarantee an accessible design.
- How you learn it. By doing: matching.
- Length. 5 short steps. Progress saves on this phone.
Part of Build a market website
Plan a fictional Fiji market page, trace its interaction and test its form. Guided local activities work offline after download; this is not a free-form code editor.