Rishiv93
Rishiv93

Reputation: 55

Change all text colors on a website

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?

Upvotes: 1

Views: 766

Answers (2)

Alonessix
Alonessix

Reputation: 82

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;     
}

Upvotes: 2

Erik Philips
Erik Philips

Reputation: 54638

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;
}

Upvotes: 3

Related Questions