HTML, CSS, Flexbox -- (Need help with border-radius)
Design comparison
Solution retrospective
I ran into a problem with the border-radius. Starting at 1055px screen width it seems to flatten out and ends up looking like a regular box. I can't seem to find the source of this issue. Any help would be appreciated!
Community feedback
- @darryncodesPosted about 3 years ago
Hi Daniel,
Nice one!
You might want to add
transition: ease-in .3s;
andcursor: pointer;
to your button to have more of a button feel and smooth hover affect.Marked as helpful1@o0oDanielHaroo0oPosted about 3 years ago@darryncodes Thank you!
That's a great tip, will do!
0 - @palgrammingPosted about 3 years ago
well you you need to put the border raidus on the corners of your cards that need them
Put this on your orange card
border-radius: 20px 0 0 20px;
then look at how the dark cyan card compares to the results on the orangethe key is you have to transition the border radius corners on the cards depending if it is the mobile or desktop layouts
Marked as helpful1@o0oDanielHaroo0oPosted about 3 years ago@palgramming Hey, thanks for the reply!
Well yeah that definitely fixes it but I still don't understand why wasn't it working before. The father element ".card" of the columns does have the border-radius property and overflow hidden and it works just fine in smaller widths but when screen gets to 1055px it just starts straightening. I appreciate the solution but I don't understand what is the actual problem and why it happened.
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