CSS CSS Margins Question #8926
MCQ Single Best Answer Easy

QWhich CSS property is used to set the margin for an element to be a percentage of the height of its containing element?

ID: #8926 CSS Margins 118 views
Question Info
#8926Q ID
EasyDifficulty
CSS MarginsTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A margin-height
  • B margin-percentage
  • C margin-relative
  • D margin-height-percentage
Correct Answer: Option C

Explanation

There is no CSS property specifically for setting the margin around an element to be a percentage of its containing element's height. However, you can use relative values for the margin property to achieve this effect.

Share This Question

Challenge a friend or share with your study group.