Css miscellaneous
- The _____________ property allows us to include the padding and border in an element’s total width and height.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
.div1 {
box-sizing: border-box;
}
- The _____________ property specifies the background color of an element.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
body {
background-image: url("img_tree.png");
background-repeat: no-repeat;
}
- The ___________ property specifies if/how an element is displayed.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
h1.hidden {
display: none;
}
- Which of the following elements are block and inline elements, respectively, that have no particular rendering?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The div element and span element are block and inline elements, respectively, that have no particular rendering. You might call them generic tags. Because these tags don’t have any predefined meaning or rendering, they are very useful for arbitrary style duties.
- ____________ property sets the coordinates of the clipping shape that exposes or hides the content of absolutely positioned elements
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
clip: rect(coordinates) | auto | inherit