Submitted over 4 years ago
Article preview component HTML CSS Vanilla JS
@devbajwa
Design comparison
SolutionDesign
Solution retrospective
I want to know if my approach on share details is ok with CSS and JS?
For example: creating two divs (share-details = facebook twitter pinterest icons) one for desktop and one for mobile.
Thanks
Community feedback
- @deepakmauryamdPosted over 4 years ago
Instead of creating two divs we can change style of share div in mobile and desktop view accordingly. One issue in current solution is desktop view share social media icons are not visible. So if you keep only one div then such mistake can be avoided and only style will change, else code duplication will increase and it becomes hard to debug.
0
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