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

Order Summary component (CSS Grid, Custom CSS, Responsive)

Mohsin 60

@Mohsin-93

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


Would appreciate any feedback.

Community feedback

@catherineisonline

Posted

Nice! 🙌🏻

I would also add some transitions for active states (when colors change on hover). It creates more interactivity and makes the project looks cooler. Active states can be done on buttons, links, titles which act like links or anything else, you choose.

You can read more about it here, in case you haven’t done much of it:
https://www.w3schools.com/css/css3_transitions.asp

IF THIS WAS HELPFUL PLEASE MARK IT AS HELPFUL 🤩

Marked as helpful

0
Vanza Setia 27,795

@vanzasetia

Posted

Hi, Mohsin!

Here are a few ways you can do to improve this solution.

  • The hero illustration and the music icon are decorative images. So, leave the alternative text empty (alt="").
  • For your information, decorative images are images that don't add any information and serve only aesthetic purposes.
  • Use CSS to make the "Change" text to be bold instead of using <b>. Remember that HTML is not for styling.

I hope this helps. Happy coding!

1
RabbitMaid 1,020

@Agbortoko

Posted

@media screen and (width <=500px) {
      //anything in here 
  } //-----> not good

@media screen and (500px < width < 770px) {
        //anything in here
   } //-----> not good

Firstly media queries should look like either of the below

@media screen and (max-width:  600px){
    //from 600px style downwards
} 

@media screen and (min-width:  500px){
    //from 500px style upwards
} 

The point is some aspects of your component are already mobile responsive during the design process. In other words focus on mobile design first! Then simply adapt your media query to fix up medium and larger screens So the above can simply be summarized to

@media screen and (min-width: 450px){
    //anything in here
}


0

Mohsin 60

@Mohsin-93

Posted

Hi Agbortoko,

@media screen and (width <=500px) {
      //anything in here 
  } //-----> not good

@media screen and (500px < width < 770px) {
        //anything in here
   } //-----> not good

Please let me know what exactly is wrong with it?

@media screen and (max-width:  600px){
    //from 600px style downwards
} 

@media screen and (min-width:  500px){
    //from 500px style upwards
} 

Is there a need for having the two sizes overlap?

@media screen and (min-width: 450px){
    //anything in here
}

You mean to say that I should design for mobile first and anything bigger than and for width>=450px I should have a single media query?

0
RabbitMaid 1,020

@Agbortoko

Posted

@Mohsin-93 No method is best Just avoid use of <= >= as much as you can

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