@francisldn
Posted
Hi @NicolasEiriz, regarding your question, this is caused by the default body height setting. Body height is by default set to the height of the elements (.card
+ .attribution
) on the page. So you should add below to expand the body height to 100% of the viewport height. Then flexbox will automatically center the elements.
body {
min-height: 100vh;
}
Refer to this article to learn more.
Marked as helpful
@NicolasEiriz
Posted
@francisldn Francis thats great! I really have no idea about this, really appreciate, thanks for your time :)