- This topic has 13 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 29, 2023 at 8:53 pm #2513610
Jusung
When you see this page, on the second container, you can see 4 images and I made hover effect on the image.
When I reduce the window screen, I can see white blank area under the second container.Is there a way to make the height 100% always?
January 29, 2023 at 9:21 pm #2513622Fernando Customer Support
Hi Jusung,
Can you add the
min-heightto the Container Block instead, and add the background color there as well? Reference: https://docs.generateblocks.com/article/container-overview/#minimum-heightJanuary 29, 2023 at 10:11 pm #2513643Jusung
When I remove the height on the cover, the white blank area is gone.
However, the hover image is not stretched fully.
The hover image is supposed to be streched fully.I gave the height on the container, but it didn’t change anything.
I can’t add background color as well. Now I am using color block temporily, but I will add image later.
Also, nothing changes after adding background color..January 29, 2023 at 10:44 pm #2513667Fernando Customer Support
You can remove the Cover Block, and then set the image size to 100% height reference: https://docs.generateblocks.com/article/image-overview/
We can alter it with CSS afterward if there’s something wrong still with that structure.
January 30, 2023 at 12:34 am #2513706Jusung
It works!
but I want to figure one more thing out.
I want to make (First container and second container) 100% height on the screen.
How can I make this?
January 30, 2023 at 12:47 am #2513710Fernando Customer Support
You can set
100vhmin-height value for the Containers. Make sure to changepxtovh.January 30, 2023 at 1:01 am #2513724Jusung
It doesn’t seem working.
I gave 70 vh for the first container
and I gave 30 vh for the second container.
So, the total is 100 vh, but it is over the screen..January 30, 2023 at 1:10 am #2513731Fernando Customer Support
I can’t see the 30vh set for the second Container. Can you try clearing the cache?
January 30, 2023 at 1:38 am #2513770Jusung
You can see
Container 1
container 2 (containerA, containerB, containerC, containerD)if i give 30 vh to container 2 and 70vh to container 1, it makes white blank under container 2 when the screen is reduced.
when I give 30vh to each containerABCD, it doesn’t make 100% of height, but doens’t make white blank area.
right now, I give 30 vh to the container 2 and it is making white blank area under container 2.
January 30, 2023 at 1:47 am #2513778Fernando Customer Support
I see. Can you set it first to
30vh? We’ll see what’s occurring and assess what needs to be done.Another thing you can do is place Containers 1 and 2 inside a Parent Container and set that Container to 100vh.
Then that heights of Containers 1 and 2 should be 70% and 30% respectively.
January 30, 2023 at 2:53 am #2513840Jusung
It still doesn’t work..
I made a parent container that containes container1 and 2 and give 70vh and 30vh respectively.
It doesn’t work. it is always over..
January 30, 2023 at 2:56 am #2513842Jusung
I found the reason.
When I give 70vh and 30vh respectively, it works.
However, when I add image on the container, it is broken..January 30, 2023 at 7:17 am #2514108Jusung
It seems solved…
I jsut used container instead of image then it works well..
January 30, 2023 at 9:50 am #2514447David
StaffCustomer Supportyeah if you use a background image on the container block and set the background size to
coverit will always fit -
AuthorPosts
- You must be logged in to reply to this topic.