user225269 user225269 - 8 months ago 20
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'.