Skip to main content
1-Visitor
Dec 12, 2017 7:49 AM UTC
Question

preview doesn't apply css of root view

Hello,

I have created a 2D app assigned the class "main" to the root view "Home" and put

.main {

  background-color: #242730;

  text-align: center;

  color: white;

}

in my css. Now, the editor applies that correctly, but the preview ignores it. Is that a bug or am i doing something wrong?

I tried it both in firefox and chrome

3 replies

21-Topaz I
Dec 13, 2017 7:51 PM UTC

Hi Jovan, Are you able to see your class definition changes when viewing your project via ThingWorx View?

Translate
1-Visitor
Dec 14, 2017 7:08 AM UTC

Well, as you know from my other question(to which you replied) i didnt manage to test it on a device yet.

Translate
1-Visitor
Dec 18, 2017 10:43 AM UTC

But should it work this way?

Translate