CSS Multiple Choice Questions & Answers (MCQs) focuses on “Precise Positioning of Elements”.

Q 1. Which of the following CSS Property controls how an element is positioned?
A. fix
B. set
C. static
D. position

Show Answer Answer:-D. position
Explanation Controls how an element is positioned. When set to absolute or fixed, the element is removed completely from the normal flow of the document. When set to relative, the element is moved relative to its position in the normal flow, but a space is left where it would normally have been. The default value, static, means the element remains in the normal flow and is not positioned.

Q 2. Which of the following CSS Property specifies the top offset of a positioned element?
A. top
B. up
C. reverse
D. fix

Show Answer Answer:-A. top

Q 3. Which of the following CSS Property Specifies the left offset of a positioned element?
A. right
B. left
C. bottom
D. up

Show Answer Answer:-B. left

Q 4. Which of the following CSS Property sets the stacking order of positioned elements?
A. x-index
B. y-index
C. z-index
D. all of the mentioned

Show Answer Answer:-C. z-index

Q 5. Which of the following CSS Property Defines the area of an absolutely positioned element that remains visible?
A. clip
B. clamp
C. visibility
D. static

Show Answer Answer:-A. clip

Q 6. Which of the following CSS Property specifies whether the labels for an element’s list items are positioned inside or outside the “box” defined by the listed item?
A. list-style
B. list-position
C. list-style-position
D. all of the mentioned

Show Answer Answer:-C. list-style-position
Explanation Syntax: list-style-position: inside | outside

Q 7. Which of the following CSS Property defines the x-coordinate of the background-position property?
A. background-position-x
B. background-position-y
C. background-x-axis
D. background-y-axis

Show Answer Answer:-A. background-position-x
Explanation Syntax: background-position-x: length | percentage | left | center | right

Q 8. Which of the following CSS Property specifies the position of the mask?
A. mask-position
B. mask
C. mask-origin
D. none of the mentioned

Show Answer Answer:-A. mask-position
Explanation Syntax: mask-position: xpos ypos.

Q 9. Which of the following CSS Property specifies the x-coordinate in the position of the mask?
A. mask-x
B. mask-x-origin
C. mask-origin-x
D. mask-position-x

Show Answer Answer:-D. mask-position-x
Explanation Syntax: mask-position-x: length | percentage | left | center | right

Q 10. Which of the following Microsoft-introduced property defines the position of underlining set by the text-decoration property?
A. text-underline
B. text-underline-origin
C. text-underline-position
D. none of the mentioned

Show Answer Answer:-D. none of the mentioned

Leave a Reply

Your email address will not be published. Required fields are marked *

Author

quizsquestion@gmail.com

Related Posts

Python Questions and Answers – Exception Handling – 3

Python Multiple Choice Questions & Answers (MCQs) focuses on “Exception Handling – 3”. Q 1. What happens if the file is not...

Read out all

Python Questions and Answers – Exception Handling – 2

Python Multiple Choice Questions & Answers (MCQs) focuses on “Exception Handling – 2”. Q 1. The following Python code will result in...

Read out all

C++ Programming Questions and Answers – Exception Handling – 2

C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Exception Handling – 2”. Q 1. Where should we place catch block...

Read out all

C++ Programming Questions and Answers – Exceptions That Are Not Errors

C++ MCQs (multiple choice questions) focuses on “Exceptions That Are Not Errors”. One shall practice these MCQs to improve their C++ programming...

Read out all

Python Questions and Answers – Encapsulation

Python Multiple Choice Questions & Answers (MCQs) focuses on “Encapsulation”. Q 1. Which of these is not a fundamental features of OOP?A....

Read out all

You cannot copy content of this page