Padding vs Margin Ticket
HTML / CSS
20 pts
Padding vs Margin Ticket
Finish the ticket for the Keren Monday market tour using both padding and margin:
.ticket: padding with the four-value shorthand: top 10px, right 20px, bottom 30px, left 40px..ticket: 24px of space outside its border on the top (margin-top)..ticket h2: 8px of space between the heading text and its bottom border (padding-bottom).
Checklist
- Give the ticket padding 10px, 20px, 30px, 40px (clockwise).
- Add 24px of space above the ticket, outside its border.
- Add 8px between the heading text and its underline.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
