Is there any way to make a textbox in asp.net control appear like a underline only, just like in paper documents where blanks are placed for text input?
The quickest way to underline text is to press Ctrl+U and start typing.
Select the text box you want to change. On the Format tab, click the More drop-down arrow in the Shape Styles group. A drop-down menu of styles will appear. Select the style you want to use.
Apply a solid border-bottom
:
<asp:TextBox id="txt" runat="server" CssClass="underlined" />
CSS:
input.underlined
{
border:0;
border-bottom:solid 1px #000;
outline:none; /* prevents textbox highlight in chrome */
}
-- SEE WORKING DEMO --
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With