Why is there gaps on both sides of the children in this flex container ?

Can someone explain me this?
No description
25 Replies
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
Its the first child , I thought gaps only applied on the front that is 1 direction
b1mind
b1mind•2mo ago
That looks like spacing not gap? Helps if you share code
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
its row gap I swear and I can't share code because its made in web flow but i can share the the demo link for website, so you can inspect
MarkBoots
MarkBoots•2mo ago
is there a element with 0 height before play maybe? you can just inspect element
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
there is no element or another child i can share you the html
MarkBoots
MarkBoots•2mo ago
html and css we need
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
https://zapify-77bb67.webflow.io/ here is the website lemme share you the css and html
MarkBoots
MarkBoots•2mo ago
this will be fine.
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
wait dont open it
<div class="w-layout-blockcontainer video-container w-container">
<div class="text-block-8">PLAY</div>
<div class="div-block-51">
<img src="someimage.png 667w" alt="" class="image-41">
</div>
<div class="text-block-8 text-block-video">VIDEO</div>
</div>
<div class="w-layout-blockcontainer video-container w-container">
<div class="text-block-8">PLAY</div>
<div class="div-block-51">
<img src="someimage.png 667w" alt="" class="image-41">
</div>
<div class="text-block-8 text-block-video">VIDEO</div>
</div>
.video-container {
grid-column-gap: 60px;
grid-row-gap: 60px;
grid-template-rows: auto;
grid-template-columns: 1fr 1fr 1fr;
grid-auto-columns: 1fr;
grid-auto-flow: row;
justify-content: flex-start;
align-items: center;
max-width: 1670px;
display: flex;
}
@media screen and (max-width: 991px) {
.video-container {
grid-column-gap: 75px;
grid-row-gap: 75px;
flex-flow: column;
}
}
.video-container {
grid-column-gap: 60px;
grid-row-gap: 60px;
grid-template-rows: auto;
grid-template-columns: 1fr 1fr 1fr;
grid-auto-columns: 1fr;
grid-auto-flow: row;
justify-content: flex-start;
align-items: center;
max-width: 1670px;
display: flex;
}
@media screen and (max-width: 991px) {
.video-container {
grid-column-gap: 75px;
grid-row-gap: 75px;
flex-flow: column;
}
}
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
No description
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
ignore the grid properties 🙂
MarkBoots
MarkBoots•2mo ago
if i have to ignore it, please remove it. some grid/flex properties are shared. it can interfere
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
they dont , otherwise the dev tools would not show them that they are inactive ?
MarkBoots
MarkBoots•2mo ago
i think its happening inside .text-block-8. but it would be really more usefull to have something live to play with
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
i can help you with that
MarkBoots
MarkBoots•2mo ago
this is to difficult from just a few snippets and screenshots. I can't help
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
turn the home-2 class to display block
No description
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
I am trying my all to help you understand 😦
Mannix
Mannix•2mo ago
I'm not getting the same result as you
No description
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
WTF
Mannix
Mannix•2mo ago
if there is no extra element maybe you have pseudo element ?? those are counted in flexbox to
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
i think you are onto something
No description
i_lost_to_loba_kreygasm
i_lost_to_loba_kreygasmOP•2mo ago
yeah you are right 🙂 thank you for solving the mystery I swear I didnt add them in css , I hate working in webflow , feel like it adds unnecessary styling or markups 😦
Mannix
Mannix•2mo ago
:thumbup:
vince
vince•2mo ago
I didn't know this 👀
Want results from more Discord servers?
Add your server