cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

preview doesn't apply css of root view

jsladojevic
1-Newbie

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 3

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

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

But should it work this way?

Top Tags