Why is Chrome ignoring text input's "size" attribute?

google-chrome, html

Solution

Presumably you have some styling affecting it. Without any style rules, it works just fine. But when you apply a style rule with a smaller size, that takes precedence.

To figure out what style rule is affecting it, right-click it and choose "Inspect Element," then look at the styling information shown to the right.

Problem

The following size attribute has no effect whatsoever. Why? ``` <input type="text" size="80" placeholder="blablabla bla lba bla bla bla blabla bla bla bla lba"> ``` It's defaulting to 60 characters and there's seemingly nothing I can do to change that.

Original source