Is there a way to vertically center text entered in textarea with known width and height? I have a fixed-sized textarea where text should be typed in and I want the text to start from the center while you type it. Horizontal centering could be done with text-align:center, but I cant find any way to align horizontally.
相关问题
- React Native Inline style for multiple Text in sin
- How to change the first two uppercase characters o
- Rounded corners on a textarea with a scrollbar
- Is there a way to rotate text around (or inside) a
- QML creating Text element takes long time
相关文章
- 放在input的text下文本一直出现一个/(即使还没输入任何值)是什么情况
- display CENTERED row of images
- Rendering plain text through PHP
- Why are images centered vertically with `line-heig
- Python thinks a 3000-line text file is one line lo
- How to get all distinct words of a specified minim
- True Center Vertical and Horizontal CSS Div [dupli
- saving cProfile results to readable external file
I think you cannot do the vertical alignment directly. You should make another div over the text area and use it to make text vertically aligned and take the inputs from user to the textarea and transfer it to the div using the JS.
And make the textarea invisible only.