topskill.dev
CoursesTracks
0
All courses/CSSArrange Swap Table Labels
Layout Fundamentals
4 / 10
← 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

Arrange Swap Table Labels

Arrange the vegetable labels

The demo used paragraphs for its labels. This vegetable table uses spans for the labels and trading note, so they begin as inline content. Their visual styling is supplied; add only the display rules in style.css.

The two labels need their own boxes while sharing a row. The note needs a new line. Only the organizer helper should disappear.

Your Task

  1. Set .tag to display: inline-block;.
  2. Set .swap-note to display: block;.
  3. Set .hidden-helper to display: none;.

Inspect the arrangement

Run after each task. At a wide enough preview size, both labels should sit side by side; the note should begin below them. After the last task the helper should occupy no space. Submit checks every label, not just the first one.

Hint 1
1 / 2
HINT 1

Use a separate rule for each class.

HINT 2

display: none removes the helper from the layout.

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