From 99d91a1219f61584f94e48b4517e573cda981cb5 Mon Sep 17 00:00:00 2001 From: Diem-Trang Pham <6422507+pdtrang@users.noreply.github.com> Date: Wed, 22 Oct 2025 18:38:17 -0500 Subject: [PATCH] feat(curriculum): add interactive examples to percentages lesson (#62956) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../672bb7d659f0089377a91eab.md | 108 +++++++++++++++++- 1 file changed, 102 insertions(+), 6 deletions(-) diff --git a/curriculum/challenges/english/blocks/lecture-working-with-relative-and-absolute-units/672bb7d659f0089377a91eab.md b/curriculum/challenges/english/blocks/lecture-working-with-relative-and-absolute-units/672bb7d659f0089377a91eab.md index 1579e3a361c..9728526d820 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-relative-and-absolute-units/672bb7d659f0089377a91eab.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-relative-and-absolute-units/672bb7d659f0089377a91eab.md @@ -5,33 +5,129 @@ challengeType: 19 dashedName: what-are-percentages-in-css --- -# --description-- +# --interactive-- Percentages in CSS are relative units that allow you to define sizes, dimensions, and other properties as a proportion of their parent element. When you use a percentage value, you're essentially saying, "Make this X% of its container." For example, if you set `width: 50%` on an element, it will occupy half the width of its parent container. This makes percentages incredibly useful for creating responsive designs that adapt to different screen sizes. +:::interactive_editor + +```html + +
This is some example text.
+