Latest solutions
Latest comments
- @PetraU11@Antoine-Flo
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 !
- @Yellow-May@Antoine-Flo
Hi Onyekwere Precious 👋
Good job it looks really nice 👍 but why did you use a min-width on your body 🤔 try to remove it and your layout will response nicely when you reduce the screen size.
Apart from that, it looks really nice, keep coding 😀
- @hassanahmadp@Antoine-Flo
Hi Muhammad ! 👋
Great job, it looks really nice ! If I had a suggestion, try to avoid using a fix height for the grid raw for the mobile layout. From your breakpoint at 940px, because of the fixed height there is a huge empty space in the Daniel Clifford card.
And I'm not sure you have to specify
grid-column: auto; grid-row: auto;
at the end of your css, it should be the default behavior (but maybe I'm mistaken).Anyway nice job again 👍
- @TheMihirSensei@Antoine-Flo
Hi TheMihir 👋 good job, your design comparison looks nice.
Anyway, your layout isn't responsive right now, you have to find ways to fix your design so it doesn't move everywhere when the screen size changes.
- Float properties are nice but you should also use flexbox, to help you organize your elements with more control.
- Apply a
max-width
to your container so it doesn't stretch on big screens - I wouldn't use the
bg-pattern-desktop
as a background-image, but as animg
in your html, like the woman (with absolute positioning). - Notice that the 'woman' picture changes when in mobile size. You don't have to use the box anymore but the other illustration in you images folder.
Keep coding, layouts are challenging at first but it gets easier 👍
- @Yemisrach15@Antoine-Flo
Hi Yemisrach15 👋 Great job, the design comparison is like pixel perfect 👌 it's impressive.
If I had a suggestion, you should apply a
max-width
to your div wrapper, so your layout doesn't stretch too much on big screen.Apart from that, your CSS style sheet is way cleaner than mine 😅 Good luck and happy coding !
- @ashwin366@Antoine-Flo
Hi Ashwin 🖐 nice job !
A suggestion :
- You should wrap all your layout inside a div 'container', and apply a max-width so your design doesn't stretch in a weird way on larger screen.
It looks good, keep coding 👍