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

Product Preview Card Component

MirTynan 100

@MirTynan

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Couldn't get the rounded cornered button that I wanted if anyone can help me with that, thank you

Community feedback

@ereljapco

Posted

Hey, MirTynan!

Try to use rem. 0.65rem worked for mine :)

And if I may add some suggestions:

Re: accessibility

  • You can wrap your container inside main.
  • You can add alt="Add a description here" for the image

Re: style

  • You can use flexbox on main to place your item in the center of the viewport. Consider setting your height to 100vh
  • You can add the font-family that is in the style-guide.md

Marked as helpful

0
Leo 440

@Souicia

Posted

Hello MirTynan, how we meet again ! :)

For border-radius, do not use percentage, use px. The only time you use percentage in border-radius is when you make a circle and it's always 50% with the same width and height. Otherwise, when you style more precisely, such as this challenge, use px.

Also, avoid using the <h> tag to make your text bigger, the <h> tag is reserved for title of sections on a website and should be used in decreasing order and in big websites. You can easily change the font-size, and weight with those CSS attributes while using the <p> tag or a <div>.

Marked as helpful

0

MirTynan 100

@MirTynan

Posted

@Souicia thank you! Coming to save me again :)

2

@Victolo1

Posted

Have your tried using the border-radius property?

0

MirTynan 100

@MirTynan

Posted

@Victolo1 yes but it just seems to give an angle instead of a curve The border radius worked on the container itself but for some reason not the button

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