<style>
.bgClr{
background-color: lightgreen;
}
</style>
<link [email protected]("~/Content/css/xyz.css") rel="stylesheet" />
<div>......
<input type="text" class="bgClr" />
....</div>
Here is the code I've written in my html page. In xyz.css, I have defined the same css class like this
.bgClr{
background-color: red;
} // in xyz.css
But in result, background-color color of the control is always Red.
May I know the reason why the .bgClr of xyz.css is always taken ?
<style>would have priority over<link>(which it does, theoretically) but today I learned that<link>will still override<style>if it is defined after the latter. +1