I have the following code how I can make contaniner_contant class closer to background_countainer

in the following code https://codesandbox.io/p/sandbox/layout-page-8gvxls you can see there space between class "contaniner_contant " and class "background_countainer" I'm looking to make class "contaniner_contant " closer to bottom without using position
13 Replies
Jochem
Jochem11mo ago
please give #how-to-ask-good-questions a look, a live version (for example using codepen) will make it much easier for people to help you, and it's much more readable if you use code blocks to share code
mona Salih
mona SalihOP11mo ago
many thanks
mona Salih
mona SalihOP11mo ago
expected_output
No description
dys 🐙
dys 🐙11mo ago
You've got a margin-top on container_constant. Is that not working like you want?
mona Salih
mona SalihOP11mo ago
No
dys 🐙
dys 🐙11mo ago
It should be pushing container_constant down. Is that not your goal?
mona Salih
mona SalihOP11mo ago
yes as you can see here I increse the margin-top but still there space between the conteners at the bottom https://codesandbox.io/p/sandbox/layout-page-8gvxls?file=%2Findex.html%3A47%2C22
Mannix
Mannix11mo ago
so in your sandbox you want the red border to stick to the bottom of the black background?
mona Salih
mona SalihOP11mo ago
yes
Mannix
Mannix11mo ago
you need to adjust the padding on .background_countainer you want the padding on bottom to be 0
Mannix
Mannix11mo ago
now you have padding-bottom set to 80px
Want results from more Discord servers?
Add your server