Responsive layout using media queries

Solution retrospective
I am proud that i used html tables effectively and next time i would like to try CSS Grid
What challenges did you encounter, and how did you overcome them?I couldn't remove the borders on the last element of the table. I surfed the web for some time and eventually fixed this problem.
What specific areas of your project would you like help with?I would like help with CSS particularly because I am rather new at it.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Mahnoor366880
Your solution is looking great! You're on the right track, and I can see that you've put in solid effort. Here are a few improvements to make it match the required result more closely:
- Background Color Adjustment
The required result has a soft beige background, while your solution has a light pinkish shade. Update the background color to match the required result.
You can adjust it in your CSS:
body { background-color: #f3e5d8; /* Use this beige tone */ }
- Font and Text Styling
The font in the required result looks slightly bolder, and the headings have a darker shade. Make sure you are using the correct font weight and colors.
Example for the heading:
h1 { font-weight: 700; color: #302d2c; /* Darker shade for better contrast */ }
- Card Shadow and Border Radius
The required result has a smoother, slightly rounded card with a subtle shadow effect. Add the correct border radius and shadow for a polished look.
Update your .card styling:
.card { border-radius: 12px; /* More rounded corners / box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); / Subtle shadow */ }
- Spacing and Padding Adjustments
The spacing between sections (especially between "Preparation time" and "Ingredients") needs slight fine-tuning.
Increase the bottom margin of the "Preparation time" section:
.preparation-time { margin-bottom: 20px; /* Adjust for better spacing */ }
- Nutrition Table Styling
In the required result, the nutrition table has slightly different padding and text alignment.
Adjust it like this:
table { width: 100%; text-align: left; border-collapse: collapse; } td, th { padding: 10px; }
You're doing an awesome job! These small refinements will bring your solution even closer to perfection. Keep up the great work!
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