Backgrounds Flashcards

1
Q

What is the background layer in CSS?

A

A specialized layer behind every CSS box.

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

What is the initial value of the background-color property?

A

Transparent.

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

What does the background-image property do?

A

Places an image on top of the background color.

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

What values does background-image accept?

A

Image URLs (url()) and dynamically created gradients.

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

What do CSS gradient functions do?

A

Generate background images by passing two or more colors.

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

What is the default behavior of background images in CSS?

A

They repeat horizontally and vertically to fill the background layer.

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

What does the background-repeat property do?

A

Changes the default repeating behavior of background images.

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

What are the possible values for background-repeat?

A

repeat (image repeats in available space)
round (fits as many instances as possible without cropping)
space (repeats without cropping horizontally)

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

When does the background-position property apply?

A

When the background is set to no-repeat.

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

What does the background-size property do?

A

Sets the size of background images.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. What are the possible values for background-size?
A

Default (intrinsic value)
Length
Percentage
Keywords (auto, cover, contain)

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

How does CSS handle multiple background images?

A

They are defined from top to bottom, with the first background closest to the user.

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

Why is the order important in the background shorthand?

A

Position and size must be specified together and separated by a slash (/).

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