Bold text in the from: <input> field?

Today, when I filled out my calendar on google, I saw that the description of the event is in bold:

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

Is it possible to display a custom text style in an input text box?


thanks Arman.

EDIT Simple search I love the jquery watermark plugin to do a similar thing.

+3
source share
2 answers

CSS can format text in an input text box:

<html>
<head>
<style type="text/css">
   input {font-weight:bold;}
</style>
</head>
<body>
   <input type="text"/>
</body>
</html>
+11
source

try this you don't need to write css

 <input type="text" style="font-weight: bold;">
+3
source

All Articles