1

I am currently using Asp.Net MVC 5, how do I change the font color on every page to a specific color?

I am currently using the bootstrap style sheets and am trying to style the site.

Is there a over-arching css class which will change all of the font color's to a specific color?

Erik Philips
  • 53,428
  • 11
  • 128
  • 150
Rishiv93
  • 55
  • 14

2 Answers2

3

For MVC you'd have a global css file included on every page. Then to set the default color you could use:

html, body{
  color: #ff6600;
}

If you wanted an high viable override of other styles (not recommended) then:

html *, body *{
  color: #ff6600 !important;
}
Erik Philips
  • 53,428
  • 11
  • 128
  • 150
2

This is a very simple question. All you need to use would be body * or * as a CSS selector in a CSS file. It will select all of the elements--be it <div> or <p>, <img> or <q>, it'll get them. Example of use:

* {
  color: #333333;     
}
Alonessix
  • 82
  • 1
  • 8