Sunnyside Agency using HTML5 , CSS3 , JavaScript and Bootstrap 5
Design comparison
Solution retrospective
Any advice how can I improve? I am aware that I repeat code and that I need to make classes where there are same styles and just put that classes on elements. I will appreciate any advice.
Community feedback
- @tenderkingPosted about 2 years ago
hei, your mobile version the images are strecthing weirdly, I also see you have a display none !important. avoid important in css. the reason you have it it's because you have display: inline-block !important. you have double images one for desktop and another for mobile you can either do like you did without the important, or as background images or use which i recommend html picture to toggle between two images https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture i have'nt checked your code just the preview site p.s some of the font sizes and colors are wrong.
1@milosshomyPosted about 2 years ago@tenderking Hey , I am using Bootstrap classes that's why you can see !important. It is because I am switching images based on screen size. The challenge gave 2 images , 1 for desktop 1 for mobile so I just use them. For font size and colors, I don't have premium account so I can't see design in Figma so it can't be pixel perfect. Thank you for feedback!
0@tenderkingPosted about 2 years ago@milosshomy hmm. if you use picture its pure html, no need for bootstrap or css to switch between two images. yeah understand about the design. it looks good in my opinion. You did a great job.
1
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