Can a dimension in css be set to “0”, without any units? Because in my world “0 px” is exactly as long as “0 cm”, “0 em” and even “0%”.
Example:
width:0;
Thank you!
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.
Yes, it can: a non-unit
0measurement is absolutely fine:(Emphasis mine).
Reference:
<length>‘ type.