Padding értékek: padding CSS jellemző tulajdonságai

Padding

Szükséges hely az objektum és egyéb tartalom között. Sorrend: felső, jobb, alsó, bal.

Shorthand property used to declare all the margin properties at once.
Lehetséges értékek:
minden oldalra jellemzően:
hosszúság
...%
auto (alapértelmezett)
Separate values by a space in the following order (those that are not defined will use inherited or default initial values):

padding-top
padding-right
padding-bottom
padding-left

Undeclared values work as further shorthand notation. If only one length value is declared, all four sides will use that length. If two lengths are declared, the top and bottom sides will use the first length while the right and left sides will use the second length. If three lengths are declared, the top side will use the first length, the right and left sides will use the second length, and the bottom side will use the third length.

<padding-width>{1,4} | inherit

Padding minták, példák:

div { padding:5px 12px 4px 7px; }

div { padding:5px; }

div { padding:5px 10px; }

div { padding:5px 7px 4px; }


padding: 20px 2mm 23% 2cm;
Alapértelmezett érték: nincs
Öröklődő tulajdonság: nem
Media besorolás: visual
Csoport besorolás: padding értékek

Kompatibilitás: CSS 1, CSS 2, CSS 2.1, CSS 3,

További padding értékek:

padding-top padding-right padding-bottom padding-left

Padding CSS tulajdonságok, referencia

Webdesign