Streaming live at 10am (PST)

Styling a div inserted by Javascript

I’m wondering if there is a way on the designer dashboard (other than custom CSS), to design a div that is inserted with an embedded javascript widget?

We are trying to separate our workload from marketing (who is styling the page w/o css knowledge) and me the programmer. The div is nested inside another div if that helps at all.

Thank you.

If you can apply a class to that JS-embedded div with JavaScript then you can simply create that same class name in designer by applying it (temporarily) to any random div in the designer. After you have styled the random div with that same class name to your liking, delete the div. This keeps the class in the available CSS and will attach to your JS embedded div automatically.

That’s how I would do it in theory anyway.


1 Like

That makes sense, I’ll give it a shot, thank you JFly

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.