@HunigoleSan
Posted
Third Tip: Fixed Measurements or Pixels
I noticed that your classes ".container", ".description", "#description", and "button" use a width property in pixels. While this isn't inherently bad, it's essential to understand its implications. While percentage measurements are often touted as superior, there are scenarios where pixels are more suitable. However, for mobile devices, using pixel measurements can be problematic.
Consider learning about percentage measurements, and in this scenario, transitioning to percentage-based widths may be beneficial. Don't forget to add "padding: 2rem" to the body tag. However, be cautious as making these changes abruptly may break your existing code. Additionally, mastering the correct usage of "display: flex" can greatly improve your layout.
Fourth Tip: File Paths
If your image works locally but not when uploaded to a website, it may be due to incorrect file paths. Ensure that your file paths are correct, especially in the background-image property. Instead of "/images/image-product-mobile.jpg",
use "../images/image-product-mobile.jpg" to adjust the path correctly.
Congratulations on your progress in web development! Remember, success in this field requires consistent practice and patience. Keep practicing, and you'll become a better developer over time. Feel free to rate my assistance, and don't hesitate to reach out if you need further help. Until next time! 🚀✨
Marked as helpful
@Guga-tab
Posted
@HunigoleSan Thank you for your help, I will put your tips into practice, thank you very much... besides, I would like to start entering this market as a freelancer, what tips could you share with me.
@HunigoleSan
Posted
@Guga-tab Hello friend, it's a pleasure to help! 😊 I invite you to visit my profile where I've just completed this same challenge. It may give you a new perspective on code. Regarding entering as a "freelancer," I'm just starting in that world. However, I have a lot of experience in UX/UI design Figma, CSS-Flex-Grid, animations, and JavaScript. While I've had a couple of clients so far, I'm still learning and growing in this field. I'll gladly share what I know, and I hope it helps you on your journey! 🚀✨ Success on your path! 🌟 Prepare, and fight for your goals! 💪🚀
Marked as helpful