CSS Flashcards

1
Q

Change the background color of the body element to sky blue.

A

body {
background-color: #87CEFF
}

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

Create a border around the whole body that is 50 pixels thick and white.

A

body {border: 50px solid #FFFFFF}

or

body {border: 50px solid white}

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

What symbol makes the CSS select EVERYTHING?

A

*

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

Add a background image to an article element

A
article {
     backrgound-image: URL("");
     background-size: 80px 60px;
     background-repeat: no-repeat;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What attribute makes alignment relative to edge of page rather than other existing element?

A

.class {
position:absolute;
}

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

How do you underline text

A

text-decoration:underline;

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

How do you change the color of a link?

A

a:link {
color: green;
}

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

How do you change the color of an already clicked link?

A

a:visited {
color: pink;
background-color: transparent;
text-decoration: none; }

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

How do you change the color of a link you hover over?

A

a:hover {
color: red;
background-color: transparent;
text-decoration: underline;
}

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