Design comparison
Solution retrospective
I still want to use vanilla CSS. I have trouble with the center where i used 3 floats left with width %. Is there a better solution ?
Community feedback
- @gmcodes20Posted almost 3 years ago
Hello @codefliers, nice one you got here.
Maybe some few issues that shouldn't be hard to fix.
First, you page should have some margins from the screen. I.e it is too close to the edge of the screen.
Secondly, to center an element, you can use margin auto and specify the width of element. You can also choose either css grid or css Flexbox (checkout this course on grid for more insight https://www.cssgrid.io )
Last but not the least, you cannot nest link inside a button or vice versa just like you did here <button1><a href=
https://www.frontendmentor.io?ref=challenge
>Proceed..... It should be a button or a link but not both nested.Marked as helpful0 - @JonathanRePosted almost 3 years ago
Look into flexbox for the items in the center of the card. You can also use it to center the card in the page, so you don't have to use position: absolute;
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord