Home Articles CSS Typeing Text in Upper Case using CSS


Typeing Text in Upper Case using CSS

User Rating: / 1
PoorBest 
Avatar

Type Text in Upper Case using CSS

While working with web application forms. When we create the forms which can be filled online and then printed to submit we came across the need that the particular textbox such as Name or Father’s Name should be filled in capital letters as most of the conventional forms need this. To accomplish this task we can take help of the CSS property by writing a single line code we can lower our most of the extra work and can concentrate on other parts of the code here is a small example to achieve what I have described above. Here we go:

Type Text in Upper Case using CSS

< head runat="server" >
< title > Upper Case < /title >
< style type="text/css" >

.test

{

text-transform: uppercase;

}

< /style >

< /head >

< body >

< form id="form1" runat="server" >

< div >

 

< /div >

< asp:TextBox ID="TextBox1" runat="server" CssClass="test" > < /asp:TextBox >

< /form >

< /body >

 

Thanks and Regards

Meetu Choudhary

founder: http://www.msdotnetmentor.com

Comments (0)
Only registered users can write comments!
Last Updated on Thursday, 25 February 2010 12:58  

Member Login

AddThis Social Bookmark Button