Responsive Huddle Landing Page built with HTML & SASS
Design comparison
Solution retrospective
Again, I appreciate any general comments and feedback!!
If you notice, there is no hover state on the social media icons. I had trouble with this part. My initial thought was to place the svg code directly into the html, and then edit its fill color in CSS. However it was not working. The code looked like this:
svg:hover { fill: pink; } However, it didn't change it's color. Any help on this is much appreciated :)
Community feedback
- @hcxwebPosted almost 3 years ago
Hello DK, I experimented with your social media svg file, and I think the problem may be due to the property of that particular style. You see how your svg files look like the inverse of those in the original design. I recommend using icons from font awesome and see if that helps.
0@DanK1368Posted almost 3 years ago@hcxweb You are right, I shouldve chosen better icons. I found a solution though since the logos within the circle are transparent, I gave them a background of the active color and cropped it to a circle, like this:
.social-media-icons:hover { scale: 110%; cursor: pointer; background: $active-color; border-radius: 50px; }
0 - @nakoyawilsonPosted almost 3 years ago
If you use the svg code directly in the html I believe the fill property you need to change is actually in the path tag. Try using
svg path:hover {fill: pink; }
instead and see if that works.0@DanK1368Posted almost 3 years ago@nakoyawilson Thanks for the tip. You were right, this solves the issue. I found a solution though to this problem, better suited to the icons Ive chose. :)
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