Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive layout without media queries

P
Grog the Frogβ€’ 480

@GregLyons

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


With this challenge I focused on getting the single-row to single-column transition without media queries. I linked the sources that helped me in the README.md. Let me know of any other ways to accomplish this without media queries, or if you have suggestions on improving what I currently have.

Any other feedback is also welcome.

Community feedback

Vanza Setiaβ€’ 27,835

@vanzasetia

Posted

Hi, @GregLyons! πŸ‘‹

Awesome work on this challenge! Your solution is responsive even without any media queries, amazing! πŸ‘ It's great that you've put some effort to explain the code that you've written! πŸ‘

So, my recommendation is to try to fix all the accessibility issues that have been reported by Frontend Mentor and make the :focus and create the :focus-visible styling different than the :hover effect. The purpose of the :focus-visible styling on interactive elements is to make the users that navigate the site using keyboard know where they are on the page.

Keep up the great work!

Marked as helpful

1

P
Grog the Frogβ€’ 480

@GregLyons

Posted

@vanzasetia Thank you!

The accessibility issues that Frontend Mentor reported on my end had to do with lacking an <h1> and a <main> (which I've fixed now). I do try to be very aware of making :focus visible, not just :hover, and I believe I had that before (I tabbed through to check).

However, I didn't know about :focus-visible before, and I think it'll be very handy for me going forward; it's been bothering me recently that if I put a :focus style on a <button>, the style will stay even after being clicked. It seems like :focus-visible is the way to fix this, so thanks for that!

0
Vanza Setiaβ€’ 27,835

@vanzasetia

Posted

@GregLyons You're welcome! πŸ˜„

It's great that you've fixed all the reported issues! πŸ‘ Keep it up!

0
Kamasah-Dicksonβ€’ 5,610

@Kamasah-Dickson

Posted

your solution looks great and on smaller devices also. Texts are also readable. Another way you can achieved this also is by using CSS grid which has the minmax() Function to determine your minimum width and your maximum width. It sometimes need media queries depending on the design. Besides good job thereπŸ‘ Happy codingπŸ‘

Marked as helpful

1

P
Grog the Frogβ€’ 480

@GregLyons

Posted

@Kamasah-Dickson Thanks for the feedback. Using CSS Grid with minmax() for responsivity is also something I want to work on, so I'll keep that in mind for the future.

0
Kamasah-Dicksonβ€’ 5,610

@Kamasah-Dickson

Posted

@GregLyons am Glad to hear that, have a nice dayπŸ‘

0

Please log in to post a comment

Log in with GitHub
Discord logo

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