how to set formatting of all textbox in website with css, without set cssclass property of each textbox


Problem :

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

Solution :

just add this in your css file


this style will be applied on every textbox

    CSS Howto..

    CSS: How to force objects to stay inside container but allow full width background? [duplicate]

    How to link to a CSS if a certain condition happens?

    css in firefox and ie is rendering old css file…chrome shows new css just fine

    How do I center a set of JQuery Mobile radio buttons in the viewport?

    How to do simple client-side form validation using JavaScript/jQuery?

    How to get a background image to work in CSS and HTML?

    How to have the cutout of a div at the bottom right with shadow to the left

    css 3d animation, how?

    How do I use Parent page to get attributes for wp_nav_menu buttons?

    QuickSand Script not showing correctly in IE 7

    How to apply CSS rotate transition around glyph's vertical middle or centerpoint

    How can I truncate long texts in a table using CSS?

    I want to add same function for two css class. How can I do it?

    How to center div using JQuery or CSS

    CSS and jQuery current links navigation: how to update the
  • class
  • How to make div height fit the content using css

    How to get css width of class?

    HTML/CSS: how to force text within a tag to be styled with font-style: italic !important;

    How to remove top border for one element in a list

    How do I make my webpage scale-able depending on the size of the browser window?

    How can I avoid using too many classes in CSS?

    How to use weather API to create my weather HTML page [closed]

    Jquery how to add :hover to css style sheet

    SCSS/SASS how apply style for all pseudo selectors

    Why do small spaces keep showing up in my web pages?

    How to replace cycle('float: left', 'float: right') to use pure css?

    How do I make a jQuery animation work across major browsers?

    CSS Dropdown menu: How to make absolute positioned sub nav line up perfectly

    How can I float dynamic div's next to each other?

    How can I achieve this transparency effect using css?