I usually put 0 as value when i want to remove something in css. For example:
border: 0;
background: 0;
Is there any difference between 0 and none?
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.
When used with composite styles like
borderandbackground, the values will correspond to different properties.border: 0will setborder-width: 0whileborder: nonewill setborder-style: none.background: 0will setbackground-position: 0whilebackground: nonewill setbackground-image: none.So, there is a difference. In the case of the border, the difference doesn’t make any visual difference as both remove the border, but for the background it can make a difference if you also set any other background properties.