Single Choice Easy

QWhich CSS property is used to set the padding on the left and right sides of an element?

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

Choose the Best Option

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

  • A padding-x
  • B padding-horizontal
  • C padding
  • D padding-left-right
Correct Answer

Explanation

The padding-x property is not a valid CSS property. However, the padding property can be used to set the padding on the left and right sides of an element by specifying two values.

Share This Question

Challenge a friend or share with your study group.