@shalash23
Submitted
I think the main question was how to edit the SVG icons depending on screen size using a media query. I solved it with JavaScript but definitely there is a better way
@Saga-sanga
@shalash23
Submitted
I think the main question was how to edit the SVG icons depending on screen size using a media query. I solved it with JavaScript but definitely there is a better way
Hi Shalash,
I've gone through your solution and regarding your question the I would recommend you try using <picture>
html element for the SVG.
https://www.w3schools.com/tags/tag_picture.asp
Here's a link to my solution: https://saga-sanga.github.io/advice-generator/
Marked as helpful
@ToenSh
Submitted
I'd like to know if there's a way to have a transition apply to the arrows on the dropdown menus both when they go up and down (only have it when they go up). Also I couldn't really find a solution to having the background darkened when opening the menu on mobile. Any feedback on that and anything else would be much appreciated!
Hi, Toni congratulations on completing the project!
I've gone through your solution and regarding your question on a dark background my solution was to have a blank div
element in the header element. Set it to width: 100vw
height:100vh
and have a z-index lower than the actual navigation element.
A link to my solution: https://www.frontendmentor.io/solutions/responsive-landing-page-with-navigation-jhF-XWlOHR
@kriShnanshu-saini
Submitted
I am unsure with my CSS work. If someone has suggestion do let me know so that I can improve more and be careful for next time.
Hi, Anshul. Fist off congratulations on completing the project!
I've gone through your project and a few pointers I would like to give you are:
width
in the .container
class maybe try using max-width
so as to make the card more responsive.media="(min-width: 1440px)"
change the break point to around media="(min-width: 640px)"
so that the card adjusts itself only to smaller screens.That is all from me. Thanks and happy coding!
Marked as helpful
@sidesshmore
Submitted
Hi Siddesh, congratulations on completing the challenge! 🚀
Just a few points I've noted in your design:
line-height
of your h1
element so as to reflect the given design better.<article>
for your image section so as to be more semantically correct.padding
, font-size
and margin
of your text content.That's all I have to offer. I hope it helps. Thank you!
Marked as helpful