Thursday, February 11, 2016

Keep a CSS effect from cascading to child elements of the thing being skinned.

This has this:

#parent {
   white-space: pre-wrap;
}
#parent * {
   white-space: initial;
}

 
 

The asterisk is the magicmaker.

 
 

Addendum 7/7/2018: The asterisk is the Universal Selector and matches any type.

No comments:

Post a Comment