Apply Styles based on dom change

Because of the way style sheets work if you add a style to the parent. The effect trickles down to the child. CSS styles and activate and deactivate based on change to the parent element.