CSS: Layouts and Effects Flashcards

(27 cards)

1
Q

What is CSS Overflow?

A

Overflow refers to the way elements handle content that exceeds, or “overflows”, the size of the containing element. Overflow is two-dimensional.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the “overflow-x” property?

A

The x-axis determines horizontal overflow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the “overflow-y” property?

A

the y-axis determines vertical overflow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the “overflow” shorthand property?

A

Shorthand property for overflow-x and overflow-y. If given one value, both overflows will use it. If given two values, the overflow-x will use the first, and the overflow-y will use the second.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the CSS Transform property?

A

This property enables you to apply various transformations to elements, such as rotating, scaling, skewing, or translating (moving) them in 2D or 3D space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the “translate()” function?

A

This function is used to move an element from its current position.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the “scale()” function?

A

This function allows you to change the size of an element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the “rotate()” function?

A

This function allows you to rotate an element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the “skew()” function?

A

This function allows you to skew an element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are important points about the Transform property in relation to accessibility?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the CSS Box Model?

A

In the CSS box model, every element is surrounded by a box. This box consists of four components: the content area, padding, border, margin.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Content Area?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the “padding” property?

A

The padding is the area immediately after the content area. It’s the space between the content area and the border of an element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the “border” property?

A

The border is the outer edge or outline of an element in the CSS box model. It’s the visual boundary of the element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the “margin” property?

A

The margin is the space outside the border of an element. It determines the distance between an element and other elements around it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Margin Collapse?

A

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).

17
Q

What is the “box-sizing” property?

A

This property is used to determine on the final width and height is calculated for an HTML element.

18
Q

What is the “content-box” value?

A

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.

19
Q

What is the “border-box” value?

A

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.

20
Q

What is CSS Reset?

A

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.

21
Q

What is the “filter” property?

A

This property can be used to create various effects such as blurring, color shifting, and contrast adjustment.

22
Q

What is the “blur()” function?

A

This function applies a Gaussian blur to the element. The amount is defined in pixels and represents the radius of the blur.

23
Q

What is the “brightness()” function?

A

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.

24
Q

What is the “contrast()” function?

A

This function adjusts the contrast of the element. A value of 0% will make the element completely grey, 100% will make the element appear normally, and values greater than 100% will increase the contrast.

25
What is the "greyscale()" 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.
26
What is the "sepia()" function?
This function applies a sepia tone to the element. Like grayscale, it uses a percentage value.
27
What is the "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.