Single Choice Easy

QWhich CSS property is used to set the padding on an element relative to its parent container?

ID: #8902 CSS Padding 127 views
Question Info
#8902Q ID
EasyDifficulty
CSS PaddingTopic

Choose the Best Option

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

  • A padding-top
  • B padding-left
  • C padding-right
  • D padding-relative
Correct Answer

Explanation

There is no such property as padding-relative in CSS. However, the padding property can be used to set the padding on an element relative to its parent container using percentage values.

Share This Question

Challenge a friend or share with your study group.