We are developing a Html widget using Css as the styling mechanism. The widget needs to be self-contained such that it doesn’t interfere with any other component on the host webpage.
We have a single Css file with a large number of style definitions in it. In order to contextualise them, every single one starts with the name of the main widget container...
#MainWidgetContainer .class1.....
{...}
#MainWidgetContainer .class2.....
{...}
Is there a way I can apply the MainWidgetContainer context in a more global way?
Note – Possibly being picky. I can live with it the way it is but I thought it was worth an ask.