- This topic has 10 replies, 3 voices, and was last updated 4 years, 5 months ago by
David.
-
AuthorPosts
-
October 8, 2021 at 10:10 am #1957410
Klaus
Please have a look at the following page:https://i-kult.de/?page_id=34. I want the boxes headlined Block1 and Block2 to expand in height so that they end level with the picture independent of the amount of content.
Many thanks
KlausOctober 9, 2021 at 1:40 am #1957796David
StaffCustomer SupportHi there,
can you set the Grid Container vertical alignment to default, then i can take a look at whats required.
October 9, 2021 at 3:46 am #1957870Klaus
Hi David,
I changed the vertical alignment of the outer grid container to default, the inner one has already been standard.
Hope I did this correctly.BTW: I tried to solve my design approach with the grids. Maybe a positioning using relative and absolute property would be more successful. What do you think?
BR
KlausOctober 9, 2021 at 5:29 am #1957939David
StaffCustomer SupportI wouldn’t use absolute positioning as it removes the element from the DOM content flow, so it no longer occupies space in the layout, meaning column heights will collapse and things will overlap.
First thing to do is clean up the Layout. You have an additional Container Block inside the right hand column:
https://www.screencast.com/t/gutd2LNtR9
Not sure why that is required ? As all Columns have a Container Block inside them by default.
Can that be removed as its going to just cause us a headache 🙂October 9, 2021 at 7:43 am #1958045Klaus
ok, I got rid of the additional container. But is still not working. Sorry for my ignorance David, I appreciate your help a lot.
Is it possible that my problem derives from the fact, that the flex items (called by background color) lightgrey box, grey box and darkgrey box sit in their own container (lightgrey box) or another grid (grey box and darkgrey box)?
Looks like this becomes more a teaching in flex boxes rather then GP……
BR
KlausOctober 9, 2021 at 7:48 am #1958065David
StaffCustomer SupportI am still seeing that extra container 🙂
Can you make sure its removed and any caches are cleared.
Once thats changed i can provide the CSS to position the bottom blocks.October 9, 2021 at 9:21 am #1958323Klaus
please find attached the structure of how I have set up the page. Please mark what you want me to delete.
I will install cachify to clear the cache….
October 9, 2021 at 9:49 am #1958342Klaus
ok… cache should be cleared and I have once again rearranged the boxes. The new layout is now:
Still too many divs???
Many thanks
KlausOctober 9, 2021 at 10:09 am #1958364Ying
StaffCustomer SupportHi Klaus,
Give this CSS a try:
.gb-container.gb-container-4ada87c5 > .gb-inside-container { height: 100%; display: flex; flex-direction: column; } .gb-grid-wrapper.gb-grid-wrapper-7cda56d1 { height: 100%; }Let me know 🙂
October 9, 2021 at 10:34 am #1958382Klaus
Hi Ying,
this works. I wonder a lot why this container you address with the rule
.gb-container.gb-container-4ada87c5 > .gb-inside-container {
height: 100%;
display: flex;
flex-direction: column;exists at all or why it doesn’t already have these properties (at least display flex and flex-direction). Is this a bug or do I misunderstand something???
I had the idea with the height myself in the second container. But obviously it didn’t work without the first CSS instruction.
Maybe you want to answer, if not (I understand that your days are busy :-)) you can close the subject.
Many thanks once again
KlausOctober 9, 2021 at 2:10 pm #1958483David
StaffCustomer SupportIt might be worth you adding an Additional CSS Class to each of those Containers. Instead of relying on the auto generated unique IDs. ie.
.gb-container.your-custom-container-class>.gb-inside-container { height: 100%; display: flex; flex-direction: column; } .gb-grid-wrapper.your-custom-button-wrapper-class { height: 100%; }Then give your Right hand column container the:
your-custom-container-class
And the Button wrapper:your-custom-button-wrapper-classWe don’t add the CSS by default as messes with the vertical alignment options and can mess other things up.
We’re looking at adding these kinds of options to GB – once we figure out a good UI 🙂 -
AuthorPosts
- You must be logged in to reply to this topic.