topskill.dev
CoursesTracks
0
All courses/CSSTarget a Book Cart Sign
Selectors In Depth
2 / 7
← 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 a Book Cart Sign

Use the relationships from the demo to style tonight's mystery recommendation. The starter supplies the sign and its dark background. Leave index.html as it is and add rules at the end of style.css.

Read the nesting before you type: the paragraph is inside a wrapper, but the heading sits directly inside the card. The sample link already has target="_blank". Its starter style deliberately removes the underline so your third change is visible.

Your Task

  1. Use .book-card p to set the nested summary paragraph color to #bfd0e5.
  2. Use .book-card > h2 to set the direct card heading font-size to 26px.
  3. Use a[target="_blank"] to set the external link text-decoration to underline.

Run after each rule. Look for a pale-blue summary, a larger direct heading, then an underlined sample link. Submit to check your completed tasks; you can check the first rule before writing the others.

Hint 1
1 / 2
HINT 1

The paragraph is inside .summary, so it is a descendant rather than a direct child.

HINT 2

The attribute selector checks the target value, not the visible link text.

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