I am playing around with the Less Framework 3 and I saw this line in the css:
body {
padding: 60px 42px 0;
width: 396px;
}
what does padding: 0 do?
This does not look like normal css shorthand, and top-right-bottom seems weird.
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.
The
paddingandmarginproperties specifytop right bottom left.If
leftis omitted, it will default toright.Thus,
padding: a b cis equivalent topadding: a b c b.If
bottomis also omitted, it will default totop.Thus,
padding: a bis equivalent topadding: a b a b.If
rightis also omitted, the single value is used for all 4 sides.Thus,
padding: ais equivalent topadding: a a a a.