diff --git a/curriculum/challenges/english/25-front-end-development/review-basic-css/671a887a7e62c75e9ab1ee4a.md b/curriculum/challenges/english/25-front-end-development/review-basic-css/671a887a7e62c75e9ab1ee4a.md index cc928cb2d03..4622bc55475 100644 --- a/curriculum/challenges/english/25-front-end-development/review-basic-css/671a887a7e62c75e9ab1ee4a.md +++ b/curriculum/challenges/english/25-front-end-development/review-basic-css/671a887a7e62c75e9ab1ee4a.md @@ -127,8 +127,8 @@ ul ~ p { - **`margin` Property**: This property is used to apply space outside the element, between the element's border and the surrounding elements. - **`padding` Property**: This property is used to apply space inside the element, between the content and its border. -- **`margin` Shorthand**: The `margin` property can be set using the shorthand syntax, which allows you to set the margin for all four sides of an element at once. The values are applied in the order `top`, `right`, `bottom`, `left`. -- **`padding` Shorthand**: The `padding` property can also be set using the shorthand syntax, which allows you to set the padding for all four sides of an element at once. The values are applied in the order `top`, `right`, `bottom`, `left`. +- **`margin` Shorthand**: You can specify 1–4 values to set the margin sides. One value applies to all four sides; two values set `top` and `bottom`, then `right` and `left`; three values set `top`, horizontal (`right` and `left`), then `bottom`; four values set `top`, `right`, `bottom`, `left`. +- **`padding` Shorthand**: You can specify 1–4 values to set the padding sides. One value applies to all four sides; two values set `top` and `bottom`, then `right` and `left`; three values set `top`, horizontal (`right` and `left`), then `bottom`; four values set `top`, `right`, `bottom`, `left`. ## CSS Specificity diff --git a/curriculum/challenges/english/25-front-end-development/review-css/671a9a0a140c2b9d6a75629f.md b/curriculum/challenges/english/25-front-end-development/review-css/671a9a0a140c2b9d6a75629f.md index 99f45471371..cf8bdd6e442 100644 --- a/curriculum/challenges/english/25-front-end-development/review-css/671a9a0a140c2b9d6a75629f.md +++ b/curriculum/challenges/english/25-front-end-development/review-css/671a9a0a140c2b9d6a75629f.md @@ -48,7 +48,9 @@ Review the concepts below to prepare for the upcoming exam. ## Margin and Padding - **`margin` Property**: This property is used to apply space outside the element, between the element's border and the surrounding elements. +- **`margin` Shorthand**: You can specify 1–4 values to set the margin sides. One value applies to all four sides; two values set `top` and `bottom`, then `right` and `left`; three values set `top`, horizontal (`right` and `left`), then `bottom`; four values set `top`, `right`, `bottom`, `left`. - **`padding` Property**: This property is used to apply space inside the element, between the content and its border. +- **`padding` Shorthand**: You can specify 1–4 values to set the padding sides. One value applies to all four sides; two values set `top` and `bottom`, then `right` and `left`; three values set `top`, horizontal (`right` and `left`), then `bottom`; four values set `top`, `right`, `bottom`, `left`. ## CSS Specificity