0

Padding Differentiation

What is the padding differentiation between padding=5px; and padding=5 5 0px;?

19th Nov 2016, 5:28 AM
Rusydi Hasan
Rusydi Hasan - avatar
2 Réponses
+ 2
First one tells that padding should be 5 pixels forr every element side. Second one tells that padding should be 5 unknown measure units from all element sides, but for bottom side it should be 0 pixels. This rule is badly written. You should write it like 5px 5px 0 if you want pixel units of course.
19th Nov 2016, 6:14 AM
Ivan G
Ivan G - avatar
0
thank you for your explanation.
19th Nov 2016, 6:18 AM
Rusydi Hasan
Rusydi Hasan - avatar