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
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
many thanks
expected_output
You've got a
margin-top
on container_constant
. Is that not working like you want?No
It should be pushing
container_constant
down. Is that not your goal?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%2C22so in your sandbox you want the red border to stick to the bottom of the black background?
yes
you need to adjust the padding on
.background_countainer
you want the padding on bottom to be 0now you have padding-bottom set to 80px