Prateek Deshpande
Prateek Deshpande

Reputation: 215

About ASP.NET page rendering when CSS is applied

If I have a label on my asp.net page with ForeColor property set to "DarkBlue". Also i hae applied a CSS to the same label in which Color is mentioned as "Red".

When the page gets renderd, text in the label will be in which color "DarkBlue" or "Red" and why??

Upvotes: 0

Views: 69

Answers (1)

FarligOpptreden
FarligOpptreden

Reputation: 5043

Well, based on CSS rules, inline styling will have priority over stylesheet includes. So it will actually render as "DarkBlue".

Upvotes: 2

Related Questions