0

Why using Inherit?

What is the point of inherit here because even if we do not provide any style it automatically inherits from its parent

1st Aug 2018, 9:26 AM
Naresh Joshi
Naresh Joshi - avatar
1 Answer
+ 1
Even if most of element styles default inherit from parents, there are some exceptions: for example, <form> and <table> elements doesn't default inherit font styles from their parents... Anyway, 'inherit' value could be useful to overide a prevously globaly overided definition dynamically (with JS) and/or on some (more) specific elements ^^
1st Aug 2018, 11:24 AM
visph
visph - avatar