Reputation: 55
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
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
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