Design comparison
Solution retrospective
i know i need help!!
Community feedback
- @hitmorecodePosted over 1 year ago
Congratulations on the effort. I have a few suggestions
<div class="text-1"> <p> Gabrielle <br> Essence Eau <br> De Parfum </p> </div> <div class="text-2"> <p> A floral, solar and voluptuous <br> interpretation composed by <br> Oliver Polge, Perfumer-Creator <br> for the house of CHANEL. </p> </div> <div class="text-1"> <h1> Gabrielle Essence Eau De Parfum </h1> </div> <div class="text-2"> <p> A floral, solar and voluptuous interpretation composed by Oliver Polge, Perfumer-Creator for the house of CHANEL. </p> </div>
- Your page is not responsive try and work on that. You can start with mobile first, since all the elements will be on top of each other this should be easy to do.
- To place the card in the middle of the page do this
- When you have a font-family that's going to be used in multiple places on the page. Just add it to the body.
body{ min-height: 100vh; display: flex; justify-content: center; align-items: center; background-color: hsla(31, 20%, 79%, 0.664); font-family: 'Montserrat', sans-serif; /* this will be applied to the entire page */ } .image{ position: relative; width: 20rem; height: 30rem; left: 350px; top: 150px; border-radius: 10px; /* this will add a radius to all four corners */ border-radius: 10px 0 0 10px; /* top-left, top-right, bottom-right, bottom-left */ z-index: 1; /* you don't need this */ }
I see you used
position: relative;
to position the elements. You don't need to do that in this case. You can manage to do all this with flexbox or CSS grid. Maybe you are not familiar with these concepts, if not you should start with flexbox.The Ultimate CSS3 Flexbox Tutorial - Colt's Code Camp this is a very good video tutorial about flexbox. If you have any questions regarding this, feel free to ask.
Keep coding
Marked as helpful0@IsvidPosted over 1 year ago@hitmorecode Thank you very much friend, I am new to this and every day I try to learn something new, I do not know anyone who is dedicated to this I have learned only by watching videos thanks for your advice
0@hitmorecodePosted over 1 year ago@Isvid you welcome the best way to learn is to practice and this is a very good place to do that. Just start with the easy ones and work up. If you need help, feel free to ask. I'll do my best to replay as soon as possible. Whatever you do Keep coding π
0@IsvidPosted over 1 year ago@hitmorecode thanks maybe you can show me one easy proyect for me bro
0@hitmorecodePosted over 1 year ago@Isvid You already done all the easy ones π. Now it's time to step up a notch.
0 - @itushPosted over 1 year ago
Congratulations on completing the challenge! π
-
To make it mobile responsive it is important to first understand how the breakpoints work with the media queries, which breakpoints to target etc.
-
Feel free to go through my product preview project code and notice how I handle responsiveness with mobile and desktop product images.
In my projects:
- I always start with mobile-first workflow.
- I use at least one main element for a page (entire content goes into the main, if I'm not using header & footer), and avoid divs as much as possible and use section and article element wherever I can.
<body> <main> All content </main> </body>
-
I Use relative units as much as possible and avoid absolute units whenever possible.
-
If you are someone who is just starting out with front-end development, I strongly suggest starting with the QR code component project(which you did). Also in the challenges page you may filter by (Newbie, HTML&CSS) sort by (easier first) to select projects that will help you solidify your foundation. To avoid any potential knowledge gapβ οΈ please first solidify HTML, CSS, JS fundamentals and then move on to any framework or library.
-
I remember when I started out, I made countless mistakes and spent long hours searching for solutions. But hey, you don't need to go through the same struggles! π To help you shorten the learning curve, I recommend going through the following articles. They contain valuable insights that can make your journey smoother:
ππ 12 important CSS topics where I discuss about css position, z-index, box-model, flexbox, grid, media queries, mobile-first workflow, best practices etc. in a simple way.
ππ 11 important HTML topics where I discuss about my thought process and approach to convert a design/mock-up to HTML along with important topics like block and inline elements, HTML Semantic Elements.
I hope you find these resources helpful in your coding adventures! π€
I'm eagerly looking forward to seeing the amazing projects you'll create in the future! ππ»
Keep up the fantastic work and happy hacking! πͺβ¨
Marked as helpful0 -
Please log in to post a comment
Log in with GitHubJoin 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