Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the font and font size of an HTML input tag? [duplicate]

Tags:

html

css

<input id="txtComputer"> 

How do I make my text inside the input tag bigger? I want to make it 24 size font. It would also be good if I can change the font from the default

like image 350
Cocoa Dev Avatar asked Nov 10 '11 17:11

Cocoa Dev


People also ask

How do you change input font size in HTML?

To change the font size in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <p> tag, with the CSS property font-size. HTML5 do not support the <font> tag, so the CSS style is used to add font size.

Which HTML tag allows you to change the text color size or font?

You can change the color and size of your text right inside its tag with the color and font-size properties. This is known as inline CSS. You do it with the style attribute in HTML.


1 Answers

<input type ="text" id="txtComputer"> 

css

input[type="text"] {     font-size:24px; } 
like image 147
tmjam Avatar answered Sep 22 '22 05:09

tmjam