English

How do you insert padding so that it is? 10 pixels at the top 15 pixels at the bottom 5 pixels at the right 10 pixels to the left

Advertisements

Question

How do you insert padding so that it is?

10 pixels at the top
15 pixels at the bottom
5 pixels at the right
10 pixels to the left

Options

  • padding:10px 15px 5px 10px;
  • padding:15px 5px 10px 10px;
  • padding:10px 5px 10px 15px;
  • padding:10px 5px 15px 10px;
MCQ
Advertisements

Solution

padding:10px 5px 15px 10px;

Explanation:

CSS padding shorthand maps values using the TRBL (Clockwise) rule:

  • Top = 10px
  • Right = 5px
  • Bottom = 15px
  • Left = 10px
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assisted Practice [Page 271]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assisted Practice | Q 15. | Page 271
Advertisements
Share
Notifications



      Forgot password?
Use app×