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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Background color is set to white but it's black on android device

BS_9805643
2-Explorer

Background color is set to white but it's black on android device

I need to have a white transparent background on a panel widget.

background-color: rgba(255,255,255,0.85);

The is the css code I'm using on the panel widget. When I test in preview everything looks fine, I test on iOS everything looks fine but on Android the background is black.

 

I tried to see if other colors would work and they do. I can set it to any other color but not white.

 

This is everything I've tried and it didn't work

background-color: rgb(255,255,255);
background-color: white;
background: white;
background: #FFFFFF;

 I had defined height of the panel and removed it in case it could be causing this problem, it wasn't.

1 REPLY 1

Hello,

 

It might be overwritten by another CSS.

 

That's append when using a CSS stylesheet like this : 

background-color: rgba(255,255,255,0.85)!important;

 

By the way when looking the screenshot attached in this thread, we can see a white background but not transparent!

If the issue is the transparency, it might be due to a limitation of web browser used in Vuforia View in Android.

Normally, it should be Google Chrome and it is compatible with RGBA colors.

More details here :

https://css-tricks.com/rgba-browser-support/

 

Best regards,

Samuel

Announcements

Top Tags