0

I am working on Asp.Net web site. I want to set Font, color and background color of all textbox in my website. i want to do it with css.

But i dont want to assign "cssclass" property of each textbox.

and as textbox i want to set formatting in RequiredFieldValidator.

is it possible to set it globally in Asp.Net with CSS

1 Answer 1

2

just add this in your css file

input[type=text]
{
  background-color:black;
  font-family:Callibri;
  color:white;
} 

this style will be applied on every textbox

Sign up to request clarification or add additional context in comments.

2 Comments

what would be for RequiredFieldValidator ??
@haider for required validator you have to use class

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.