Article-preview-component using css flex and javascript
Design comparison
Solution retrospective
most proud for adding javascript in project made project funtionable. and next time i will do better in javascript
What challenges did you encounter, and how did you overcome them?the challenge come selecting a element in javascript .and applying jacvascript init . i overcome this sitution by read about this and search inline in differnt website.
What specific areas of your project would you like help with?no,one
Community feedback
- @MikDra1Posted 2 months ago
I encourage you to use this technique to make the card responsive with ease:
.card { width: 90%; max-width: 37.5rem; }
On the smaller screens card will be 90% of the parent (here body), but as soon as the card will be 37.5rem (600px) it will lock with this size.
Also to put the card in the center I advise you to use this code snippet:
.container { display: grid; place-items: center; }
Hope you found this comment helpful 💗💗💗
Good job and keep going 😁😊😉
0 - @SvitlanaSuslenkovaPosted 2 months ago
I see you added flex, but your project didn't align to the center. The problem is you should add to your flex also min-height: 100vh; Currently, the height of the div class=main is the same as the component in it.
Why div class=main and not <main>?
@media only screen and (min-width: 480px) and (max-width: 1475px) {-- Ok, me screen is wider then 1475 and now I see a mobile version. Please consider to remove this part: and (max-width: 1475px).
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