topskill.dev
CoursesTracks
0
All courses/CSSPin the Pickup Location
Layout Fundamentals
6 / 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

Pin the Pickup Location

Pin the greenhouse pickup notice

The library demo attached “Today” to a card. This greenhouse notice needs a “Saturday” pin in the same corner. Border, padding, and colors are supplied. Add the positioning declarations in style.css.

Give the card a reference position first. Then remove the pin from normal flow before setting its offsets. Each step has a check; the pin may briefly look misplaced while its offsets are unfinished.

Your Task

  1. Set .map-card to position: relative;.
  2. Set .pickup-pin to position: absolute;.
  3. Set .pickup-pin to top: 12px;.
  4. Set .pickup-pin to right: 12px;.

Follow the offsets

Run and Submit after each task. The first step alone should not move the card. The finished pin sits 12px inside the top and right inner border edges, without taking a line above the heading. Leave the supplied padding so the pin does not cover the message.

Hint 1
1 / 2
HINT 1

Position the card before positioning the pin.

HINT 2

Put both offsets in the .pickup-pin rule.

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