0

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??

1
  • 1
    the best thing to do is go try it.. its not difficult to test.. Commented Feb 16, 2012 at 6:12

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.