Rules to override Style Sheet Rule in CSS



The following is the rule to override any Style Sheet Rule.

  • Any inline stylesheet takes the highest priority. Therefore, it will override any rule defined in <style>...</style> tags or rules defined in an external style sheet file.
  • Any rule defined in <style>...</style> tags will override rules defined in any external style sheet file.
  • Any rule defined in external style sheet file takes the lowest priority, and rules defined in this file will be applied only when above two rules are not applicable

Advertisements