Backgrounds and Borders Flashcards

1
Q

Background property and value that will not repeat the image.

A

background-repeat: no-repeat;

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

Position the background image to be vertically and horizontally centered.

A

background-position: center;

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

background-attachment: _____; does not allow a background image to scroll with its containing element, but it will scroll when the element’s content scrolls.

A

local

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

background-attachment: _____; does not allow a background image to scroll with the content on the page

A

fixed

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

T/F: Rounded corners are formed from the radius of a quarter circle, and elliptical corners are formed from the radius of a quarter ellipse.

A

True

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

When two border values are defined in the shorthand property:

A

the first value is applied to top-left and bottom-right corners, and the second value is applied to the top-right and bottom-left corners

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

If 2 values are used for 1 corner, the first value is the _ _ _ _ radius and the second is the _ _ _ _ radius.

A

horizontal, vertical

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

Using the border-radius shorthand, give each corner of a div a horizontal radius of 100px and a vertical radius of 50px.

A

border-radius: 100px / 50px;

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

Create a drop shadow for a div. Make it appear 10px to the right and 10px down, with a spread radius of 5px, a color of #222, and a blur radius of 15px.

A

box-shadow: 10px 10px 15px 5px #222;

box-shadow: x-axis y-axis blur spread color

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

What value places a box-shadow inside the element?

A

inset

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

We have an image file, ‘smiley.png’, located in the ‘img’ folder. Set it so that it doesn’t repeat, and position it in the top-right corner of the div. Then, add ‘img/pencil.png’ above the smiley image layer. Set it so that it doesn’t repeat, and position it in the bottom-left corner.

A

background: url(“img/pencil.png”) no-repeat left bottom, url(“img/smiley.png”) no-repeat right top

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

What is the function of the “background-clip” property?

A

it determines whether the background position is relative to the border, padding, or content area of the element

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

In a comma-separated list of backgrounds, where is the best place for an opaque image or color?

A

last

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

T/F: “background-size: contain;” will scale an image so that it fits entirely inside the background area, while keeping its original aspect ratio.

A

True

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

What best describes “background-size: cover;”?

A

it adjusts a background image to fill the entire background positioning area and scales it so that both its width and height can display proportionately

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