Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS can a textarea auto-fit within a div? Re: can a textarea auto-fit within a div?

#80329
Chris Coyier
Keymaster

The problem is likely that you’ve set the text area width to 100% and also added padding. You can try removing the padding, but that’s often not ideal. Is it common that the parent element of the text area changes in width? If not, skip the % width and set it statically.