Use CSS in applications Flashcards
1
Q
What is the CSS syntax for portrait orientation?
A
@media (orientation: portrait) { // code; }
2
Q
What is the CSS syntax for landscape orientation?
A
@media ()orientation: landscape { // code; }
3
Q
What is the jQuery method to hide a selected element?
A
$(selector).hide(speed, easing, callback)
4
Q
What is the jQuery method to show a selected element?
A
$(selector).show(speed, easing, callback)
5
Q
What is the CSS property to hide an element but still take up space on a page?
A
element {
visibility: hidden;
}
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;
}
7
Q
What are the elements of the text-shadow property?
A
text-shadow: h-shadow, v-shadow, blur-radius, color;