Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bold text in the from field: <input>?

Today when I filled my calendar at google I saw that the description of the event is in bold font:

<input id=":g" name=":g" type="text" class="textinput" dir="ltr">

Is it possible to render the custom text style in the text input field?


Thanks Arman.

EDIT Simple search I fond that the jquery watermark plugin can do similar thing.

like image 540
Arman Avatar asked Mar 16 '11 09:03

Arman


1 Answers

CSS can format text in text input field:

<html>
<head>
<style type="text/css">
   input {font-weight:bold;}
</style>
</head>
<body>
   <input type="text"/>
</body>
</html>
like image 89
tomasBULL Avatar answered Sep 21 '22 00:09

tomasBULL