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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Adding a Background image on 2D Experience

Lionel_Brly
11-Garnet

Adding a Background image on 2D Experience

Hi,

   I'm trying to add a background image on 2D Project with Thingworx Studio.

With this code: (In the Home View in my case)

 

.Home{

background-image: url(#{$resources}/Uploaded/AutoSpire.jpg);
opacity: 0.2;

}

I can see the image on Thingworx Studio editor, but not on "PREVIEW" neither on mobile platform.

Any ideas?

Lionel

1 ACCEPTED SOLUTION

Accepted Solutions

This is a bug. You can change your CSS to this and it should work:

 

[twx-view=Home]{

background-image: url(#{$resources}/Uploaded/AutoSpire.jpg);
opacity: 0.2;

}

 

View solution in original post

2 REPLIES 2

This is a bug. You can change your CSS to this and it should work:

 

[twx-view=Home]{

background-image: url(#{$resources}/Uploaded/AutoSpire.jpg);
opacity: 0.2;

}

 

Hello,

  thanks for your help. It's working.

Lionel

Top Tags