In the input box of my website the text of the page is an increased size, however, the text submitted in a textbox is a different size.
<input type="text" name="number">
How would I go about increasing the size of the text typed in to ?px?
In the input box of my website the text of the page is an increased size, however, the text submitted in a textbox is a different size.
<input type="text" name="number">
How would I go about increasing the size of the text typed in to ?px?
input[type="text"]{
font-size:24px;
}
<input type="text" name="number" value="123"/>
<input type="text" name="number" value="123" style="font-size:12px"/>
If you wish to change the size of the font for all the inputs altogether, you can add this into your header part:
<style>
input[type="text"]
{
font-size:24px;
}
</style>
if you wish to change the font size for a specific input field, you can use:
<input style="font-size:25px" type="text" name="number"/>
in addition, if it is a number you are planning on being typed into this field you might want to use type="number"
. read more about it here