How to enable HTML TextArea auto width resizing?

Is it possible to have a HTML TextArea automatically resize its width with the browser window width (I mean dynamically)?

Answers


Sure. For example like this

HTML

<textarea id="flex">Test text</textarea>

CSS

#flex { width: 80% }

We can also achieve the following functionality by using bootstrap. Bootstrap uses grid layout and divides the whole screen in 12 grids, and as the screen window re sizes, different elements inside the body also gets shifted and re sized.You can download bootstrap library from this site: http://getbootstrap.com/


Need Your Help

Use God with multiple applications and start them automatically after a reboot

ruby gem centos god process-monitoring

I'm currently trying to monitor various processes/daemons of in total three Rails/Rack Applications using god. Monitoring works great, the problem is that i'm not able to configure god to autostart...

Grep file search returns: Is a directory in OSX Mountain Lion

macos file terminal grep osx-mountain-lion

I am trying to search for a specific file using the example How do I use grep command to search a file?