#How to make the footer stick to the bottom of its container?
14 messages · Page 1 of 1 (latest)
The card element is a child of the body
I just tried giving the container a margin-bottom: 0 and didn't work, same with the footer
Also tried that, and my body margins are set to 0, except for the top
Body {
Height:100%
}
?
nope 😦
I don't think is anything to do with the body, though, since the footer is inside a container
These are the properties of that container:
.card-container {
text-align: center;
margin-top: 30px;
width: 317px;
height: 780px;
background-color: #1A1B21;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
Ah then remove that height. I’m guessing your content is not high enough for that container.
I feel so dumb right now lol
Thank you so much!
@winter bridge A question, should I close the discussion after getting the response I wanted? Or leave it open?