CBSE Class 10 Computer Applications Question 19 of 37

Cascading Style Sheets (CSS) — Question 15

Back to all questions
15
Question

Question 15

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
  1. padding:10px 15px 5px 10px ;
  2. padding:15px 5px 10px 10px ;
  3. padding:10px 5px 10px 15px ;
  4. padding:10px 5px 15px 10px ;
Answer

padding:10px 5px 15px 10px ;

Reason — The order of padding values is top, right, bottom and left. Thus, to insert the given padding, we write the definition as follows:

padding:10px 5px 15px 10px ;