πŸ“Š CSS
Q. What does 'padding: 50px 20px;' specifies?
  • (A) top padding is 50px
  • (B) bottom padding is 20px
  • (C) right padding is 20px
  • (D) Both A & C
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both A & C

Explanation: In css, if padding is written as
padding:50px 20px;

It means first padding is from top and bottom and second digit is the padding from left and right.

If padding is defined as
padding:30px;

It means the element will get 30px padding from all four sides.

Explanation by: Vishal Gupta
In css, if padding is written as
padding:50px 20px;

It means first padding is from top and bottom and second digit is the padding from left and right.

If padding is defined as
padding:30px;

It means the element will get 30px padding from all four sides.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
2651
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
81%
Success Rate