You Cannot Stop Inheritance in CSS
06.09.2011
The only way is to override it with a more specific rule for the child elements.
or
A workaround for this is to use the direct children operator.
for example
ul>li
Will only select the direct child of ul which is li and not select any descendents of a li.