• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

8.4. Padding

Between the borders and the content area, we find the padding of the element box. It is no surprise that the simplest property used to affect this area is called padding.

padding


Values

[ <length> | <percentage> ]{1,4} | inherit


Initial value

not defined for shorthand elements


Applies to

all elements


Inherited

no


Percentages:

refer to the width of the containing block


Computed value

see individual properties (padding-top, etc.)


Note

padding can never be negative



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint