Cards lose align when adding second Text

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
christ2000
 
 
Posts: 83
Joined: Tue Dec 24, 2019 2:08 pm

Cards lose align when adding second Text

Post by christ2000 »

Hello, any idea why my card lose the align when adding second text?

HERE SHOW CORRECT

Image


THEN APPEAR THE ERROR

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

Re: Cards lose align when adding second Text

Post by Pablo »

I cannot see what you have done based on the screenshot.

Do you have a demo project?

Related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=82134
christ2000
 
 
Posts: 83
Joined: Tue Dec 24, 2019 2:08 pm

Re: Cards lose align when adding second Text

Post by christ2000 »

Hello Pablo, the RED TEXT in first card, is a second text i added to this card, if i add a second text card go up
User avatar
Pablo
 
Posts: 22474
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Cards lose align when adding second Text

Post by Pablo »

Sorry, but I need a project file to be able to help you.

Please read:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=82134
christ2000
 
 
Posts: 83
Joined: Tue Dec 24, 2019 2:08 pm

Re: Cards lose align when adding second Text

Post by christ2000 »

o Sorry here you arehttps://workupload.com/file/wHNXrxhEhsC

on project look fine, but in preview not
User avatar
Pablo
 
Posts: 22474
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Cards lose align when adding second Text

Post by Pablo »

I do not see the problem in the project.
The alignment looks correct when I preview the page.

What exactly do I need to do to see the problem?
christ2000
 
 
Posts: 83
Joined: Tue Dec 24, 2019 2:08 pm

Re: Cards lose align when adding second Text

Post by christ2000 »

wow, when i put the preview in firefox, chrome or any explorer, card 1 is higher
christ2000
 
 
Posts: 83
Joined: Tue Dec 24, 2019 2:08 pm

Re: Cards lose align when adding second Text

Post by christ2000 »

I put the page and test in another computer and same error

You don't see the First white card in higher position when preview?

check the arrow


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

Re: Cards lose align when adding second Text

Post by Pablo »

Ok, I thought you were referring to the alignment of the text.
I think it's related to the negative margin of the card. I believe they call this 'collapsing margin'
In this case the height of all cards should be the same.
christ2000
 
 
Posts: 83
Joined: Tue Dec 24, 2019 2:08 pm

Re: Cards lose align when adding second Text

Post by christ2000 »

all cards are 370, 200 so i dont know
User avatar
Pablo
 
Posts: 22474
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Cards lose align when adding second Text

Post by Pablo »

It's not about the height, but the content of the card.
Using a negative margin will have this side effect (unrelated to WWB)
christ2000
 
 
Posts: 83
Joined: Tue Dec 24, 2019 2:08 pm

Re: Cards lose align when adding second Text

Post by christ2000 »

i think there is something wrong, i put the basic cards to test and when you delete any element on the card, the layout fail to load properly , while card has same item inside all work fine

Image
bkjohns
 
 
Posts: 296
Joined: Wed Nov 14, 2018 5:54 pm

Re: Cards lose align when adding second Text

Post by bkjohns »

Are you using a card container, layout grid or flexbox for the cards?
christ2000
 
 
Posts: 83
Joined: Tue Dec 24, 2019 2:08 pm

Re: Cards lose align when adding second Text

Post by christ2000 »

card container

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

Re: Cards lose align when adding second Text

Post by Pablo »

In the example you have shared, you are not using a card container. The cards are in a layout grid.
This means that the cards are floating, because you did not define columns.
If you really want to use a layout hgrid then you can align the top with th4 efoliwng code:

Code: Select all

<style>
#wb_Card1, #wb_Card2, #wb_Card3
{
    vertical-align: top;
}
</style>
But I think using a flex container or card container would be better choice.

Also, (although unrelated to this problem) there is an error in your breakpoints. The default view should be the widest view.
christ2000
 
 
Posts: 83
Joined: Tue Dec 24, 2019 2:08 pm

Re: Cards lose align when adding second Text

Post by christ2000 »

Thanks for the help i will try recomendations,

Pablo as you mention (The default view should be the widest view.) how put the widest default?

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

Re: Cards lose align when adding second Text

Post by Pablo »

You cannot make a breakpoint default. You will have to update the default view manually.
christ2000
 
 
Posts: 83
Joined: Tue Dec 24, 2019 2:08 pm

Re: Cards lose align when adding second Text

Post by christ2000 »

thanks
Post Reply