CSS Backgrounds Flashcards

CSS Background Syntax

1
Q

Use a CSS property to add a background with color to a web pages background

A

body{
background-color: lightyellow;
}

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

Use a CSS property to make an image a background to a web page.

A

body{
background-image: url(GreenFlower.jpeg);
}

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

Use a CSS property to make the web pages background image repeat horizontally (x - sideways repeat)

A

body{
background-repeat: repeat-x;
}

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

Use a CSS property to make the web pages background image repeat vertically (y - upwards repeat)

A

body{
background-repeat: repeat-y;
}

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

Use a CSS property to stop the background image of a web page stop/not repeating in the background of the web page.

A

body{
background-repeat: no-repeat;
}

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

Use a CSS property to specify the position of a background image on a web page.

A

body{
background-position: top right;
}

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

Use a CSS property to decide whether a background image should be static or scroll when a user scrolls down a web page’s content.

A

body{
background-attachment: scroll;
}

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