Stefan Baumgartner 10/21/2013

Content vs. value

Read Original

This technical article discusses the fundamental difference between HTML elements with content and input elements, which are defined as 'void' and cannot hold content. It explains why this makes CSS-only auto-resizing of input width impossible, referencing a Codepen example and the limitations of pseudo-elements on inputs. The author concludes by suggesting alternative approaches.

Content vs. value

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet