topskill.dev
CoursesTracks
0
All courses/CSSTarget Exhibit Details
CSS Foundations
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

Target Exhibit Details

Style the Sea Star notes

The Moon Jelly demo used p, .note, and #specimen-title. This card has different class and ID names. Read index.html to find class="care-tip" and id="sea-star-title", then add your rules in style.css.

Use an element selector for both paragraphs, a class selector for the care tip, and an ID selector for the heading. You do not need to change the HTML or add padding.

Your Task

  1. Set line-height: 1.6; in a p rule.
  2. Set background-color: #fff4cc; in a .care-tip rule.
  3. Set color: #7a1fa2; in a #sea-star-title rule.

Check the scope

Run after each change. Both paragraphs should have the requested line spacing; only the care tip should gain a yellow background. The heading should turn purple without recoloring the paragraphs. Submit to check each rule.

Hint 1
1 / 1
HINT 1

A class selector starts with a dot; an ID selector starts with #.

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