3,860
edits
Line 93: | Line 93: | ||
{{sup|a)}} <span style="font-size:small;">When using ''length'' or ''percentage'', there can't be any space character between the number value and its unit ({{samp|px}} or {{samp|em}} for ''length'', and {{samp|%}} for ''percentage'').</span> | {{sup|a)}} <span style="font-size:small;">When using ''length'' or ''percentage'', there can't be any space character between the number value and its unit ({{samp|px}} or {{samp|em}} for ''length'', and {{samp|%}} for ''percentage'').</span> | ||
====Margins and padding==== | |||
{| style="float:right; margin:10px 0px 10px 20px;" | {| style="float:right; margin:10px 0px 10px 20px;" | ||
|- | |- | ||
Line 107: | Line 108: | ||
| | | | ||
|} | |} | ||
As stated above, the two CSS properties {{samp|margin}} and {{samp|padding}} are shorthand properties. That means you define the values for all four sides of an element at the same time. | As stated above, the two CSS properties {{samp|margin}} and {{samp|padding}} are shorthand properties. That means you define the values for all four sides of an element at the same time. | ||
edits