Skip to main content
Feb 22, 2018 7:29 PM UTC
Solved

Custom CSS

When attempting to create custom CSS, how do I target the correct div I'm trying to affect?

 

For instance, the top bar widget of my master file is Header, but this is not the div name nor is the ID container-2. 

 

I'm trying to do something as simple as changing root mashup (body) background.

 

I'm a web developer so perhaps my understanding of how this works within thingworx is a little skewed.

 

Thanks!

Feb 22, 2018 8:54 PM UTC

New Composer is available with the 8.2. You need to turn on new Composer features under Administrator > Preferences > Turn on New Composer Features

 

Here is a Guide to getting started:

https://developer.thingworx.com/resources/guides/css-quickstart

5 replies

UbafeeshAuthor
Feb 22, 2018 8:06 PM UTC

Ok I think I see that you have to use CustomClass to name the DIV. 

 

The tutorial says "click the CUSTOM tab" to add a CSS block but I don't see that anywhere.

UbafeeshAuthor
Feb 22, 2018 8:16 PM UTC

Is the NEW COMPOSER different than the 8.2 trial? I'm not seeing any CUSTOM CSS tab anywhere.

Feb 22, 2018 8:54 PM UTC

New Composer is available with the 8.2. You need to turn on new Composer features under Administrator > Preferences > Turn on New Composer Features

 

Here is a Guide to getting started:

https://developer.thingworx.com/resources/guides/css-quickstart

Feb 22, 2018 9:04 PM UTC

Often the div ID has root_ pre-pended to the ID you see in Mashup Builder. For example, if the ID in Mashup Builder is container-2, the div id is root_container-2

UbafeeshAuthor
Feb 22, 2018 9:06 PM UTC

Thanks for your response!

There has to be a way for me to SEE the div name tags somewhere?