- A margin-top
- B margin-left
- C margin-right
- D margin-bottom
Time Taken:
Correct Answer:
Wrong Answer:
Percentage: %
The margin-top property is used to set the margin on the top of an element.
The margin property can be used to set the margin on all sides of an element to different values by specifying individual values for each side.
There is no such value as margin-none in CSS. However, setting the margin property to 0 (or any other value that makes sense for your layout) will effectively remove the margin from an element.
The margin shorthand property can be used to set the margin for an element in a clockwise direction starting from the top.
To set the margin around an element in relation to its containing element, you can use the margin-auto property.
The margin-y property is used to override the top and bottom margins of an element.
To set the margin for an element to be centered horizontally, you can use the margin-left and margin-right properties set to "auto".
To set the margin for an element to be centered vertically, you can use the margin-top and margin-bottom properties set to "auto".
The margin-viewport property is used to set the margin for an element to be a fixed value relative to the viewport.
The margin-em property is used to set the margin for an element to be a fixed value relative to its font size.