3 Card working with rounded corners changing

Solution retrospective
Thank you for the assistance everyone! I believe this one is solved. Once I was made aware of media queries I was able to solve the issue of the rounded corners appearing and disappearing. Any further tips on styling and general code etiquette is much appreciated! Just so I can formally get my head around media queries but as I understand it:
@media (max-width: 600px) {
/*Insert CSS style that changes*/
}
Would mean once the page dips below 600px the styling inside takes effect?
Cheers all!
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@msunji
Heya! Great job finishing this project 👍
Reading documentation isn't always the easiest, and I totally get that. But I think you're already moving in the right direction by putting what you've read into practice with this project. I guess all I can say is that it'll take a bit of time, a bit of patience, and sometimes a lot of looking things up on Google and Stack Overflow 😅 Don't worry about it too much if you don't get it the first time around.
Now about the corners. It seems like Bootstrap's Card component comes with rounded corners out of the box. You'll want to change it up a bit with the
rounded-0
utility class to remove all the rounded corners. Then, instyles.css
, you're going to need to do some custom code and media queries to set the rounded corners depending on their location (and screen size). You'll end up with something like this, for instance:.sedan { border-radius: 12px 12px 0 0; } @media (min-width: 600px) { .sedan { border-radius: 12px 0 0 12px; } }
I'm not super well versed in Bootstrap, so there might be other solutions out there, but I hope this helped regardless!
Marked as helpful
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