Use CSS in applications Flashcards

1
Q

What is the CSS syntax for portrait orientation?

A
@media (orientation: portrait) {
// code;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the CSS syntax for landscape orientation?

A
@media ()orientation: landscape {
// code;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the jQuery method to hide a selected element?

A

$(selector).hide(speed, easing, callback)

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

What is the jQuery method to show a selected element?

A

$(selector).show(speed, easing, callback)

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

What is the CSS property to hide an element but still take up space on a page?

A

element {
visibility: hidden;
}

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

Specify the color red for every <p> element that is the second child of its parent</p>

A

p: nth-child(2) {
background: red;
}

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

What are the elements of the text-shadow property?

A

text-shadow: h-shadow, v-shadow, blur-radius, color;

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