Responsive landing page without media queries

Solution retrospective
not sure in this project, probably the hover effect i added
What challenges did you encounter, and how did you overcome them?i didnt encounter any big challenge
What specific areas of your project would you like help with?i don't know why but when I try the page on my computer it looks perfect, but when I try on my phone some texts inside the buttons aren't centered for some reason, i even tried changing the centering method but it didn't worked
Please log in to post a comment
Log in with GitHubCommunity feedback
- @manav-sharma69
Hi! I looked at your code and found out that you're using
align-content: center;
property on the anchor tags.However, this might not be working because, as MDN says, 'This property has no effect on single line flex containers (i.e. ones with flex-wrap: nowrap)'.
And the default of
flex-wrap
isnowrap
.Your problem should be solved if you used
align-items: center;
on<li>
element. Also, there's thealign-self
property which can be used in place ofalign-content
, but I don't really use it and it doesn't always work (read the docs).Relevant MDN links:
- align-content (The line just below Try it Section)
- flex-wrap - See the values section
- align-items
- align-self
Hope this helps!
Marked as helpful - @ahmedyasserdev
hey Ricardo , i see that you made a great job , keep going 🔥
Join 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