Design comparison
Solution retrospective
This is my second project. I have struggled especially with font-weights.. I can't manage to make them work with Google fonts. None of them. I have also used a CSS image background for background. It worked fine but I can't manage to put the picture in the center of the image, as in the example. It has zoomed in when I have used flexbox to vertically align the card container. There is most probably a better way to do this.
I'll be happy to hear suggestions!!
Community feedback
- @brodiewebdtPosted almost 3 years ago
As far as the accessibility warnings, wrap all your main content in a Main tag and add ALT text to the images.
Download AXE DevTools and you can clear accessibility warnings while you code. https://www.deque.com/axe/devtools/
Hope this helps.
Marked as helpful0 - @brodiewebdtPosted almost 3 years ago
Your card is centered in the window for me. If you are talking about the background image, I wouldn't worry about it. The card is the most important thing. I still struggle with positioning background SVGs. As far as your fonts, you don't have the weight listed in the code from Google. You also don't have it written correctly in the CSS.
`
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;700;900&display=swap" rel="stylesheet">font-family: 'Red Hat Display', sans-serif; `
Marked as helpful0@outerpreneurPosted almost 3 years ago@brodiewebdt Thank You David, that worked very well!!
0 - @brodiewebdtPosted almost 3 years ago
Your welcome. Glad I could help. That download really helps with the accessibility warnings.
0 - @outerpreneurPosted almost 3 years ago
I will look into this and fix it.. also download AXEThank you again!!
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