Design comparison
Solution retrospective
Hello, Frontend Mentor community!
This is my first junior-level challenge. My solution works okay on Chrome but not quite on Firefox. I'd appreciate any advice on styling on different browsers and how you work around it🙏 Or if there's anything else I should focus on, any suggestions will be helpful.
Happy coding✨
Community feedback
- @jordon-youngPosted almost 3 years ago
Hi @TSune-web,
I'm looking at your solution in Firefox Developer Edition and Chrome on Windows. I'm not sure what styling issues you're seeing. On my end, they seem to look and function exactly the same on both browsers.
1@TSune-webPosted almost 3 years ago@jordon-young, thank you for the feedback!
I just checked it again and, as you said, it seems working on both Chrome and Firefox now.
When I was comparing the right side of the card component (total results part) in the laptop screen size(1440px), positioning properties for texts and numbers didn't seem to be working correctly and overlapping each other for Firefox. It might've been just my mistake💦
Thank you!
0@jordon-youngPosted almost 3 years ago@TSune-web Oh, I see what you're talking about now!
I don't think this is a browser compatibility issues. I think for some reason Chrome is assuming you wanted your main.card grid columns to be equal, and Firefox isn't making that assumption.
If I'm reading the documentation correctly, grid-template-areas only sets grid area names. You still have to declare how those rows and columns should be sized with grid-template-rows and grid-template-columns.
Check out the CSS in the Example (https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas#examples)
Marked as helpful1@TSune-webPosted almost 3 years agoHi, @jordon-young,
Is that what it is!? I was initially working on Chrome and didn't notice that I had to explicitly set grid rows and columns.
Thank you for the information! I'll play around with the grid system and see how they behave differently.
Happy coding💻
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