user225269 user225269 - 6 months ago 10
CSS Question

How do I set the size of an HTML text box?

How do I set the size of an HTML text box?

Answer

Just use:

textarea {
    width: 200px;
}

or

input[type="text"] {
    width: 200px;
}

Depending on what you mean by 'textbox'.

Comments