I want to add style in ASP.NET textbox control. I couldn’t find textbox element in elements list. I can put style in all input controls using the below code in CSS.
input
{
backgroud-color:black;
}
But this changes the background color of all input controls like buttons, radiobox, etc.
I want to do it exclusively with textbox, I don’t want to do it with CSS class.
This will do it:
Though it might not work in all browsers (e.g. IE). The only way to ensure that would be to add a class or put it inside a span element.