Wednesday, 21 November 2012

How to Place Span Inside Text Input Field

First Create a text box and Span.

Then you have to write a style for span.

In Position absolute property is important for placed the text inside the text box.

Based on our text box, we need to change the left and top property for the span.

For Example,

<input type="text" style="height:30px; width:300px;" >

<span style="position:absolute; left:285px;top:56px;color:#999999;">Test</span>


No comments:

Post a Comment