newsletter-sign-up-with-success-message-main using Lit Library
Design comparison
Solution retrospective
I'm proud use Lit Library to create custom form element.
What challenges did you encounter, and how did you overcome them?The challenge was use Lit Library to create form custom element, because I'm still learning to use it.
What specific areas of your project would you like help with?I would like feedback about use Lit Library. Thanks!
Community feedback
- @rafaeldgeoPosted about 1 month ago
Hi @edpau
Yes, I used max-inline-size: 100% and block-size: auto to SVG adjust itself according to the view. I put in SVG code the viewBox attribute.
max-inline-size or max-width define the maximus size image. block-size define the height. It's auto.
You can know more by link
https://tympanus.net/codrops/2014/08/19/making-svgs-responsive-with-css/
https://web.dev/learn/images
I hope I helped you. Sorry the English
1@edpauPosted about 1 month ago@rafaeldgeo Thank you for telling me, I learnt something new today, I will look into the links.
1 - @edpauPosted about 2 months ago
Hi, I am looking into setting explicit width and height on the SVG photo, I saw you set it and the SVG is still responsive. You used below to make it responsive, do you mind explaining how it works?
/* max-inline-size: 100%; */ /* block-size: auto; */
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