テキストボックスを作成しようとしています。そのため、ユーザーはブックの章を入力できます。テキストボックス内の開始位置(html/css)
ボックスの真ん中から入力が始まります。どうすれば修正できますか?
.TextBox {
width: 500px;
height: 50px;
background: #cccccc;
margin-left: auto;
margin-right: auto;
}
.TextBox > h1 {
font-family: 'Consolas';
text-align: center;
padding-top: 10px;
}
#textbox {
width: 500px;
height: 200px;
}
<div class="container">
<div class="TextBox">
<h1> Enter text here </h1>
<form>
<input type="text" id="textbox">
</form>
</div>
</div>
代わりに 'input'ボックスの使用' textarea'? – kukkuz