Wednesday, April 25, 2007

applying CSS in multiline textbox of asp.net

I have seen many time whenever we try to apply css classes to the the multi line text of asp.net. It does not work.

It may happened due to the browser treat that text box as the text area. So you can do it with defining text area element in css and it will automatically apply to the multi line text box.

For example.
text area
{
border:#CCCCCC 1px solid;
font-size:10px;
vertical-align:middle;
}

If still it is not working that you can set directly attributes with property such as font,font size etc.
Share:

3 comments:

  1. take the space out of text area:

    textarea
    {
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 12px;
    }

    ReplyDelete
    Replies
    1. evn after removing space this is not working

      Delete
    2. Can you provide me example or source code?

      Delete

Your feedback is very important to me. Please provide your feedback via putting comments.

Search This Blog
Loading...
About Me
My Photo

Full Stack Developer,Blogger,Microsoft Mvp, Mentor, Life long learner, 10+ Years of Experience for JavaScript, web and Microsoft technologies. ASP.NET MVC,Web Forms,C#,AngularJs,Golang
Mvp profile
Subscribe to my blog

Enter your email address:

Follow us on facebook
Blog Archive
Total Pageviews