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
Request path contains unescaped characters
Not Found

Submitted

Card using Grid and CSS and Flexbox

RazvanTSG 150

@RazvanTSG

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


I was too lazy to also do the mobile version, sorry :( I need help with two things: -getting the card in the middle of the screen -using two fonts

Community feedback

@J-HernandezM

Posted

Hi! to place the card in the center i used in the main container or the body display: grid and place-items: center. to use two fonts i recommend you to import both of them, assign one of them as the main font in the body selector at the css file, then to use the other one try using font-family: 'The font you want' in the selector of the text that you want to change to the other font.

body{
      font-family: 'Montserrat', sans-serif;
}

.cardContainer__title{
       font-family: 'Fraunces', sans-serif;
}

Marked as helpful

0

RazvanTSG 150

@RazvanTSG

Posted

@J-HernandezM Thank you so much!

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