Card fixed width

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
User avatar
colin1661music
 
 
Posts: 106
Joined: Sun May 31, 2015 3:49 pm
Location: London
Contact:

Card fixed width

Post by colin1661music »

Does, anyone know why when I set the width of cards to 150 they are wider see http://transformeurope.com/BBA/members/

I'm trying to create a list of 50 members as cards. I'm using a card container in carddock mode, I don't want to use a grid layer because I want to quickly add and remove individual members.

Thanks Colin
User avatar
Pablo
 
Posts: 21720
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Card fixed width

Post by Pablo »

I cannot see what you have done based on the published HTML.
To be able to help you, I need a demo project file so I can see all your settings.

Related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=82134
User avatar
colin1661music
 
 
Posts: 106
Joined: Sun May 31, 2015 3:49 pm
Location: London
Contact:

Re: Card fixed width

Post by colin1661music »

HI Pablo,

Here is the project http://transformeurope.com/BBA/beckenha ... -cards.zip

Colin
User avatar
Pablo
 
Posts: 21720
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Card fixed width

Post by Pablo »

The max-width value is only useful if the 'full width' property is set to 'true', otherwise it will be ignored.

You can also use a flex container instead (a card container is basically a simplified flex container with overridden flexbox properties).
When using a flex container, you can use the flex box properties to set a fixed width via the 'flex-basis' property. For example: 150px
User avatar
colin1661music
 
 
Posts: 106
Joined: Sun May 31, 2015 3:49 pm
Location: London
Contact:

Re: Card fixed width

Post by colin1661music »

Thanks, I set them all to full width true, and it works fine, not something I would have thought of doing. Might be worth greying that option out is full width is set to false. Just need to tweak it so 2 show on mobile.

It's important to keep them in one layer so its easy to add and remove them and keep them in alphabetical order.

http://transformeurope.com/BBA/members/

Thanks again for your amazing program and support.
Post Reply