Submitted about 3 years ago
article-preview-component-master using HTML, CSS and JS
@Saibramarambika
Design comparison
SolutionDesign
Community feedback
- @CarlPericles18Posted about 3 years ago
Hey, you got the right idea but for your CSS use the appropriate width for the pictures, and for JS use let or const I wouldn't recommend var and use eventListner instead of mouseover also look into if and then.
var e = document.getElementById('parent'); e.onmouseover = function() { document.getElementById('popup').style.display = 'block'; } e.onmouseout = function() { document.getElementById('popup').style.display = 'none'; }
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