Please see the following picture:

Why is padding-top and margin-top fully opaque, but padding-right etc. not?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe they are semi-transparent because they’re not explicitly defined.
Consired following sheet:
In first example (
selector1) allmargin-*properties will be semi-transparent because non is explicitly defined – shortcut is being used.In second example (
selector2) onlymargin-topwill be fully opaque, as it’s defined in its own property.In last example (
selector3),margin-topandmargin-bottomare defined explicitly, therefore the will be fully opaque. Howevermargin-leftandmargin-rightare defined by a single value, so they will be semi-transparent.Semi-transparent color is also applied to default values, for instance:
This property defined
background-color,background-imageandbackground-repeatexplicitly, howeverbackground-position,background-clip,background-sizeetc. are not defined (default values are used) so they will be seen as semi-transparent.