Page 1 of 1

get carousel at 100% height of its parent component via css

Posted: Wed Sep 03, 2014 1:08 pm
by BenjaminKaiser

Hello,

how can I stretch a carousel to 100% of it's parent component without using Javascript? It works with javascript, but that means that I can see on my phone how the elements are getting "repositioned" when using the "page show" event. If I use css everything is directly in the right position, but how can I do this?

Best,

Benny


get carousel at 100% height of its parent component via css

Posted: Wed Sep 03, 2014 3:11 pm
by Evgene Karachevtsev

Hello Benjamin,

You should create a css file and set 100% width to the internal elements of the carousel . For example, for a picture you can set in Properties Dimension:100% auto. Then the picture will be as width as the content.


get carousel at 100% height of its parent component via css

Posted: Fri Sep 05, 2014 9:53 am
by BenjaminKaiser

Hi,

I talk about the height, not the weight. :-) I have placed the carousel in a grid cell and I want the carousel fit exactly the grid cell. I can use JS, but if I do so I can see how the component is getting resized on my phone which looks bad... so I thought it should be possible by CSS to prevent this kind of "delay"...

Any thoughts?

Best,

Benny


get carousel at 100% height of its parent component via css

Posted: Fri Sep 05, 2014 4:31 pm
by Evgene Karachevtsev

Hello Benny,

Please specify how do you set the height of the grid cell?