Inputs formatting | Sololearn: Learn to code for FREE!


Inputs formatting

So I've got a comments input on my website but when the text line reaches the right border of the input, instead of breaking the line it continues writing forward which I think it looks awful... I would like to know how to solve it!

11/15/2019 11:30:04 AM

Ricardo Quintela

4 Answers

New Answer


Ricardo Quintela , Sorry , I can't understand completely without watching code :) I had same problem recently with <input> tag. So I just used <textarea> instead of input. The problem occurs because with <input type="text"> you can't use `enter` key and text flows only in y-direction. (horizontally) I think it'll be good to use textarea for comment. Hope it works :D


Ricardo Quintela Awesome website ๐Ÿ˜Š Keep learning, very weldone! I believe <textarea> will do work. It worked for me. also I could watch your source code at view-source: (including view-source in url) ๐Ÿ˜ I'll suggest you to seperate css and js from html, it's still a good project ๐Ÿ’ช and if you post it on sololearn you can get more reviews for improvement by other people


Thank you! I'll try it out, if you want to see the code just go to which is my test server and watch the font code of the page!


Thank you!!! I actually tried to separate them but (I don't know why) the server couldn't read the link of the css ๐Ÿ˜‚ Anyways thanks for the tip!!!