Adding a Background image on 2D Experience
‎Mar 20, 2018
01:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Mar 20, 2018
01:30 PM
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
Solved! Go to Solution.
ACCEPTED SOLUTION
Accepted Solutions
‎Apr 02, 2018
04:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Apr 02, 2018
04:53 PM
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;
}
2 REPLIES 2
‎Apr 02, 2018
04:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Apr 02, 2018
04:53 PM
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;
}
‎Apr 03, 2018
03:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Apr 03, 2018
03:26 AM
Hello,
thanks for your help. It's working.
Lionel