Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css padding syntax

/* Apply to all four sides */
padding: 1em;

/* vertical | horizontal */
padding: 5% 10%;

/* top | horizontal | bottom */
padding: 1em 2em 2em;

/* top | right | bottom | left */
padding: 5px 1em 0 2em;

/* Global values */
padding: inherit;
padding: initial;
padding: revert;
padding: revert-layer;
padding: unset;
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #css #padding #syntax
ADD COMMENT
Topic
Name
8+7 =