-
Notifications
You must be signed in to change notification settings - Fork 0
Overwriting External Styles
James Millar edited this page May 7, 2015
·
1 revision
The capacity to override style is broadly determined by the source of the style.
- CANNOT be overwritten by normal CSS styles
- Can be overwritten by !important CSS styles
- CANNOT be overwritten by !important CSS styles
- Can be overwritten by JavaScript Dom style manipulation
NB. Elements with Inline Styles can be targeted by selecting on the 'style' attribute.
Example:
div[style] {}
- Normal CSS specificity applies
- CANNOT be targeted by CSS styles in parent page
- Can be overwritten by Javascript DOM style manipulation
- CANNOT be targeted by CSS styles in parent page
- CANNOT be overwritten by Javascript DOM style manipulation