Page 1 of 1
Positioning and Sizing Carousel
Posted: Sun Nov 24, 2019 11:12 am
by 44MLB
I wish to have a carousel in the centre of a layout grid and have the width set to 300 pixels.
I have tried different options but it always ends up on the left and or wider than the 300 pixels.
Any help much appreciated.
Re: Positioning and Sizing Carousel
Posted: Sun Nov 24, 2019 11:26 am
by Pablo
A carousel inside a layout grid is always full width its the container.
But you can try to use a nested grid with the max-width set to 300 pixels.
Re: Positioning and Sizing Carousel
Posted: Sun Nov 24, 2019 11:52 am
by 44MLB
Unfortunately I already have a nested layout grid on the page design which means I cant use that option.
Re: Positioning and Sizing Carousel
Posted: Sun Nov 24, 2019 12:07 pm
by 44MLB
I can actually get a Fotorama carousel to be 300 pixels wide in a layout grid but I cant get it to centre.
Re: Positioning and Sizing Carousel
Posted: Sun Nov 24, 2019 12:42 pm
by Pablo
In that case, add this to 'custom style' of the carousel:
Code: Select all
max-width:300px; margin: 0 auto 0 auto;
Re: Positioning and Sizing Carousel
Posted: Sun Nov 24, 2019 2:34 pm
by 44MLB
Nice, this looks like it works perfectly on the normal Carousel. Well done Pablo
