Sunny side agency landing page using HTML CSS and vanilla JS
Design comparison
Solution retrospective
I was not able to figure out The underline effect on the learn more element, any suggestions regarding the code and responsiveness is appreciated. also can any one explain to me "All page content should be contained by landmarks" accessibility issue.
Community feedback
- @aUnicornDevPosted over 3 years ago
The underline effect can be achieved through pseudo-selector
::before
or::after
.Using
a::before { content:"" }
will create an empty element which you can add properties to and make its opacity 0 when not hovered and make it visible ona:hover
.And you don't need to wrap the
<a>
tags in an<h3>
. You can use classes instead and set thefont-size
for the<a>
tagsMarked as helpful1
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