Skip to content

Commit 5436dc3

Browse files
authored
feat(curriculum): adding content for CSS layouts and effects review page (freeCodeCamp#57057)
1 parent b08a023 commit 5436dc3

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

client/i18n/locales/english/intro.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,8 @@
20752075
"review-css-layout-and-effects": {
20762076
"title": "CSS Layouts and Effects Review",
20772077
"intro": [
2078-
"Review the CSS Layouts and Effects concepts to prepare for the upcoming quiz."
2078+
"Before you are quizzed on CSS Layouts and Effects, you first need to review.",
2079+
"Open up this page to review concepts like the <code>transform</code> property, the box model, the <code>overflow</code> property and more."
20792080
]
20802081
},
20812082
"quiz-css-layout-and-effects": {

curriculum/challenges/english/25-front-end-development/review-css-layout-and-effects/671a9311a289ae7fff25d88e.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,49 @@ dashedName: review-css-layout-and-effects
99

1010
Review the concepts below to prepare for the upcoming quiz.
1111

12+
## CSS Overflow Property
1213

14+
- **Definition**: Overflow refers to the way elements handle content that exceeds, or "overflows", the size of the containing element. Overflow is two-dimensional.
15+
- **`overflow-x`**: The x-axis determines horizontal overflow.
16+
- **`overflow-y`**: the y-axis determines vertical overflow.
17+
18+
## CSS Transform Property
19+
20+
- **Definition**: This property enables you to apply various transformations to elements, such as rotating, scaling, skewing, or translating (moving) them in 2D or 3D space.
21+
- **`translate()` Function**: This function is used to move an element from its current position.
22+
- **`scale()` function**: This function allows you to change the size of an element.
23+
- **Transforms and Accessibility**: If you're using transform to hide or reveal content, make sure that the content is still accessible to screen readers and keyboard navigation. Hidden content should be truly hidden, such as by using `display: none` or `visibility: hidden`, rather than simply being visually moved off-screen.
24+
25+
## The Box Model
26+
27+
- **Definition**: In the CSS box model, every element is surrounded by a box. This box consists of four components: the content area, `padding`, `border`, `margin`.
28+
- **Content Area**: The content area is the innermost part of the box. It's the space that contains the actual content of an element, like text or images.
29+
- **`padding`**: The padding is the area immediately after the content area. It's the space between the content area and the border of an element.
30+
- **`border`**: The border is the outer edge or outline of an element in the CSS box model. It's the visual boundary of the element.
31+
- **`margin`**: The margin is the space outside the border of an element. It determines the distance between an element and other elements around it.
32+
33+
## Margin Collapse
34+
35+
- **Definition**: This behavior occurs when the vertical margins of adjacent elements overlap, resulting in a single margin equal to the larger of the two. This behavior applies only to vertical margins (top and bottom), not horizontal margins (left and right).
36+
37+
## The `content-box` and `border-box` Property Values
38+
39+
- **`box-sizing` Property**: This property is used to determine on the final `width` and `height` is calculated for an HTML element.
40+
- **`content-box` Value**: In the `content-box` model, the `width` and `height` that you set for an element determine the dimensions of the content area but they don't include the `padding`, `border`, or `margin`.
41+
- **`border-box` Value**: With `border-box`, the `width` and `height` of an element include the content area, the `padding`, and the `border`, but they don't include the `margin`.
42+
43+
## CSS Reset
44+
45+
- **Definition**: A CSS reset is a stylesheet that removes all or some of the default formatting that web browsers apply to HTML elements. Third party options for CSS resets include `sanitize.css` and `normalize.css`.
46+
47+
## CSS Filter Property
48+
49+
- **Definition**: This property can be used to create various effects such as blurring, color shifting, and contrast adjustment.
50+
- **`blur()` Function**: This function applies a Gaussian blur to the element. The amount is defined in pixels and represents the radius of the blur.
51+
- **`brightness()` Function**: This function adjusts the brightness of the element. A value of 0% will make the element completely black, while values over 100% will increase the brightness.
52+
- **`grayscale()` Function**: This function converts the element to grayscale. The amount is defined as a percentage, where 100% is completely grayscale and 0% leaves the image unchanged.
53+
- **`sepia()` Function**: This function applies a sepia tone to the element. Like grayscale, it uses a percentage value.
54+
- **`hue-rotate()` Function**: This function applies a hue rotation to the element. The value is defined in degrees and represents a rotation around the color circle.
1355

1456
# --assignment--
1557

0 commit comments

Comments
 (0)