topskill.dev
CoursesTracks
0
All courses/CSSRiver radio schedule
Project - Flexbox + Grid Website
1 / 3
← CSS
○CSS Rule Style an Exhibit Card○Write Your First CSS Rule○CSS Selectors Target Exhibit Details○Target Exhibit Details○Apply CSS Three Sources○Apply CSS Three Ways○Specificity Resolve a Style Conflict○Resolve Specificity○Inheritance and the cascade✦Module Quiz
○Color Palette○Color Palette○Background Layer○Background Layer○Type Rhythm○Type Rhythm○Borders and Shadows○Borders and Shadows✦Module Quiz
○Box Model Seed Packet Card○Space a Seed Packet○Display Swap Table Labels○Arrange Swap Table Labels○Positioning Pickup Pin○Pin the Pickup Location○Sizing and Overflow○Size a Seed-Swap Notice○Sticky scroll headings✦Module Quiz
○Advanced Selectors Book Cart Sign○Target a Book Cart Sign○Pseudo-Classes Night Cart States○Style Night Cart States○Pseudo-Elements○Add a Book-Quote Mark✦Module Quiz
○Lantern Market navigation○Lantern Market navigation✦Module Quiz
○Community garden request card○Community garden request card✦Module Quiz
○Flex Direction○Flex Direction○Main-Axis Spacing○Main-Axis Spacing○Cross-Axis Alignment○Cross-Axis Alignment○Wrapping and Flex Items○Wrapping and Flex Items○Flexbox Navigation○Flexbox Navigation✦Module Quiz
○Grid Tracks○Grid Tracks○Grid Gaps○Grid Gaps○Grid Placement○Grid Placement○Responsive Grid○Responsive Grid✦Module Quiz
●River radio schedule○Harbor radio schedule✦Module Quiz
○Field note color system○Field note color system○Transforms○Rotate a Field Note○Resilient styles✦Module Quiz
○Kite festival signal○Garden festival signal✦Module Quiz
○Garden forecast○Harbor forecast○Fluid sizing○Fluid weather bulletin○Images that fit✦Module Quiz
○Seed inventory table○Tool checkout table✦Module Quiz
○Community maker profile○Maker profile sheet✦Module Quiz

River radio schedule

River Radio needs a title and listening button above its daily shows. This is a new page, not the completed workshop grid from the previous module. It reuses your Flexbox and Grid skills; it does not inherit that page's media query.

In style.css, .schedule-head is the flex container. display: flex puts its two children in a row. justify-content: space-between pushes them to opposite ends, and align-items: center aligns them vertically. The button is a visual placeholder; it does not play audio.

The separate .show-grid container uses display: grid. grid-template-columns: repeat(3, 1fr) creates three equal tracks, and gap: 1rem separates them. Use Flexbox for the header row and Grid for the show columns; they do not need to share a container.

Try the demo

Run Preview. Change only repeat(3, 1fr) to repeat(2, 1fr) in style.css and run again. The third show should move to the next row while the header stays unchanged. Restore three columns before continuing.

The supplied overflow-wrap: anywhere lets long show names break instead of forcing one automatic track minimum wider than the others.

This example deliberately keeps three columns at every width. The responsive design module will show how to change a layout when those columns become cramped.

Hint 1
1 / 2
HINT 1

Keep the stylesheet linked from the document head.

HINT 2

Change one declaration at a time, then use Run Preview to inspect the result.

Files
  • ⋄index.html
  • ⋄style.css
Loading editor…