I found such a situation in my code and can’t find an explanation for it. Why does Chrome (and other browsers as well) set width to auto, ignoring my width: 15px?
Here’s a screenshot:

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.
spans areinlineelements. You can’t set the width of aninlineelement.In order to set the width you’ve to change the
displayproperty of the element.I suggest these reading to learn more about CSS box model: