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

Mobile-first design using flexbox

@dragoshcode

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


1.How do I make the width smaller for mobile version? 2.Any more critic is welcomed, what would you improve? Thank you ☺

Community feedback

@TnlComputer

Posted

A todo lo que te comentaron, yo cambiaria el h3 por un h2, teniendo en cuenta que no podrias usar un h3 sin tener antes un h2.

el @import a mi siempre me dijeron que es mejor el llamado por link, ya que el @import es loqueante y si llega a fallar te quedas sin la fuente que elegistes.

buen trabajo y sigue asi...

Marked as helpful

1

@dragoshcode

Posted

@TnlComputer muchas gracias, no sabía sobre el @import

0
Pratik 160

@Pratik280

Posted

Nice Job :)

1 . Add this to card div

.container { width: 85%; max-width: 450px; } so now at small view port (mobile version) it will take 80% of width and on desktop width will be 450px

2 . Do this to fix image size

img{ max-width: 100%; height: auto; }

3 . Also you can combine border-radius by writing one line border-radius: 1rem;

keep coding :)

Marked as helpful

1

@dragoshcode

Posted

@Pratik280 thank you so much! you helped me

1
Paminos 230

@epalpam

Posted

Great job!! Keep up by coding more websites!

Related to your first question, I would suggest:

margin: auto; width: 90% or 90vw; to your container.

So you will have a container horizontally aligned to 90% of the viewport and also responsive.

Hope that helps.

Marked as helpful

1

@dragoshcode

Posted

@epameinondas-paminos 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