How to change text color of a css class?


Tags: html,css,asp.net

Problem :

I am using Bootstrap.css, and there's a class named "form-control". I am using this class to style my aspx controls. The problem is that its textbox font color is grey and I want it to be black. I have no clue about CSS. Is there a way I can change that from grey to black? Thanks.



Solution :

You can reset the text color of class - 'form-control' by adding

.form-control {
  color:#000000;
}

Add this property in a separate css file and include it just below bootstrap.min.css in head tag.


    CSS Howto..

    How put a top border to a title that only cover the letters in css

    How to fade-in and fade-out background-image with CSS transition?

    How can I create DIV “rows” while having a DIV float beside them?

    How to simulate \hfill with HTML and CSS?

    How do I bottom-align bars in a CSS vertical bar chart?

    How to add section numbers (1.2, 3.4.1) automatically using CSS?

    How to prevent a div from disappearing when you hover a link in pure css

    How to add a background image or theme through CSS?

    How to create flexible div items that break after the line?

    how to apply stylesheet to wp frontend, via plugin i created?

    How to implement this menu using css pseudo-class selector?

    How to select by CSS styles in jQuery?

    How to show parts of sprite with CSS keyframes to create animation?

    How to make page border in print CSS for every single page

    How to position text on image using position as absolute while container width being in percent

    How to arrange two butons side by side in Struts2

    How to remove space after div in my td when one div uses “relative” position?

    CSS: How to use calc(100% - 20px) to get an area to fill up all area OTHER than that of a fixed-width element?

    JSSOR slider: Image Gallery demo keeps showing highlight image on mobile

    how to put links in one line [CSS]

    How to insert a div below dynamic divs row after onclick

    How do I apply padding or a margin to this heading displayed as a table-cell?

    Why Does the

    tag creates a black background here? and how do I get rid from the border?

    How to add css for specific input type text

    How to add CSS reference link to local HTML files in folder?

    How do I get form-groups to overlap?

    CSS Position relative goes over fixed how to fix this?

    How to keep css id to the 'li' in css

    How to use jQuery to find a certain string within a div, and then apply specific styles to another div if it exists? [closed]

    css. How to write (code) css for different window widths?