my question is if it is possible to reset css styles (a lot off them) for a single div and all elements that are contained in that div.
I am asking, because I found
Try this:
div.foo, div.foo *
{
// your styles
}
which will apply the styles to the div
with class "foo" and all its descendants. The star (*
) is known as the universal selector, and not surprisingly, selects elements of any type.
Or for just the immediate children:
div.foo, div.foo > *
{
// your styles
}