padding:45px 65px 95px;
Why is it that the shorthand above would set the LEFT padding to 65px when a value for the left padding was not even given?
This is a little confusing to me.
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.
It is indeed confusing, but it’s just the was CSS works. If you specify 1 value, it will be used for all four sides. If you specify two, the first will be the
top/bottompadding and the second will beleft/right. So when specifying three, it goestop, left/right, bottom, echoing the usage for when only two values are provided.