@MichaHuhn
Posted
Good work!
You are using good class names.
Do you know why your solution is so small compared to the mockup?
Regarding your question: You can put the elements card__profile
and card__btns
into a dedicated HTML element, e.g.:
<div class="card">
<div class="card__profile">
<div class="card__btns">
</div>
Then it's easier to center this card element. For example you could use grid on the main element to center the card:
main {
display: grid;
place-content: center;
}
To make the card responsive, I applied a max-width-wrapper
class to the card element. This technique is explained in this YouTube video. That's an interesting approach, but there are also other ones.
I hope that's a bit useful.