@Antoine-Flo
Posted
Hi Petra 👋 Great job it looks nice 😀 As Yellow-May said, you have to center this card, which isn't easy.
You have few solutions for that :
- display the container as grid or flexbox, then center the content with justify-content and align-items.
- apply
margin : 0 auto;
on your element (but you know that) - use absolute positioning then =>
left: 50%;
(withtransform: translateX(-50%)
)
All of this techniques has quirks and conditions and you'll have to learn by experimenting 👍 happy coding !