Positioning and Sizing Carousel

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
44MLB
 
 
Posts: 144
Joined: Sun May 27, 2018 11:55 am

Positioning and Sizing Carousel

Post 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.
User avatar
Pablo
 
Posts: 21708
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Positioning and Sizing Carousel

Post 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.
44MLB
 
 
Posts: 144
Joined: Sun May 27, 2018 11:55 am

Re: Positioning and Sizing Carousel

Post by 44MLB »

Unfortunately I already have a nested layout grid on the page design which means I cant use that option.
44MLB
 
 
Posts: 144
Joined: Sun May 27, 2018 11:55 am

Re: Positioning and Sizing Carousel

Post 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.
User avatar
Pablo
 
Posts: 21708
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Positioning and Sizing Carousel

Post by Pablo »

In that case, add this to 'custom style' of the carousel:

Code: Select all

max-width:300px; margin: 0 auto 0 auto;
44MLB
 
 
Posts: 144
Joined: Sun May 27, 2018 11:55 am

Re: Positioning and Sizing Carousel

Post by 44MLB »

Nice, this looks like it works perfectly on the normal Carousel. Well done Pablo :-)
Post Reply