Computer Applications

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 ;

CSS

1 Like

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 ;

Answered By

1 Like


Related Questions