Page 1 of 2

Change background of list

Posted: Tue Oct 04, 2016 6:01 am
by Deon

Hi
How do I change the background of a list and its items to transparent,
This link example does not work.
https://getsatisfaction.com/apperyio/...


Change background of list

Posted: Tue Oct 04, 2016 8:37 am
by Serhii Kulibaba

Hello Deon,

Please use CSS below for that:

pre[name="myList"].ui-listview li a{
background:rgba(0,0,0,0);
}/pre
Here myList - name of your list component


Change background of list

Posted: Tue Oct 04, 2016 1:26 pm
by Deon

Hi
Where must I put that code? In my css file. I have tried . Does not work.


Change background of list

Posted: Wed Oct 05, 2016 7:54 am
by Serhii Kulibaba

You are right, add it into the custom CSS file.
What theme/swatch do you use there? What is the name of you list component?


Change background of list

Posted: Wed Oct 05, 2016 12:26 pm
by Deon

I have IOS Main Swatch is F
I have various lists. I understand that I would need to name each one.
Thank you


Change background of list

Posted: Wed Oct 05, 2016 1:24 pm
by Jeffry Reed

I have experienced difficulties in applying css so out of curiosity I tried this as well, which does not seem to work.

I am using flat-ui, swatch E, with a list, lstOrders, with swatch C

[name="lstOrders"].ui-listview li a{
background:rgba(0,0,0,0);
}

has no effect in design or run time


Change background of list

Posted: Thu Oct 06, 2016 6:42 am
by Serhii Kulibaba

@Deon,

Please clarify, what theme exactly do you use there?
We have several ios-like themes: Image

@Jeffry,

Please look at this screenshot with flat-ui/swatch E:
Image

Do you have the same behavior?


Change background of list

Posted: Thu Oct 06, 2016 8:27 am
by Deon

Hi Sergiy

I am using IOS7 JQM 1_4
Thx


Change background of list

Posted: Thu Oct 06, 2016 12:41 pm
by Serhii Kulibaba

That CSS works fine also on that theme: Image

Please check the name of the list component, and it's location. Is it located in the content component directly? Please inspect list component with browser's dev tools: https://docs.appery.io/docs/using-bro... to get a CSS selector for the current background and set the same with transparent color


Change background of list

Posted: Thu Oct 06, 2016 1:15 pm
by Deon

Aaah. My List is located in a popup.

Thx