Hover effect and responsiveness

Solution retrospective
I am happy that am improving my learning experiences and knowledge in html and css,with the correction I received, I am able tobbetter my code, and it appeared very nice. Learning new things is indeed interesting
What challenges did you encounter, and how did you overcome them?How to apply transition and transform to the pseudo element(hover)
What specific areas of your project would you like help with?More knowledge on transition and transform, box shadows effects.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@kaamiik
Some notes:
- Add a favicon and title to your html
head
.
- add
<svg aria-hidden="true" focusable="false" ...>
to your code. becausearia-hidden="true"
hides the SVG from assistive technologies.focusable="false"
prevents the SVG from being focusable in older browsers.
- Elements that have hover effect are interactive.
So because you have hover effects for your
h1
then It needs to bea
orbutton
. Now you have to choose betweena
andbutton
. If the element take you to a new page It should be ana
tag and If do an action like submit a form or add to cart then It should be abutton
. In your challenge you haveh1
and inside theh1
you have to wrap it into a interactive element too.
- Try to use a proper CSS reset at the start of your CSS style. Andy Bell and Josh Comeau both have a good one. You can simply search on the internet to find them.
- Use
min-height: 100vh;
instead ofheight:100vh;
.height: 100vh
strictly limits the height to the viewport size, potentially causing overflow issues if the content is larger than the viewport. On the other hand,min-height: 100vh
allows your element to grow in height if the content exceeds the viewport size.
- Your
max-width
should be in rem. No need to havemax-width: 10%;
inimg
. You only needmax-width: 100%;
anddisplay: block;
for yourimg
.
- Do not use ID for css.
Marked as helpful - Add a favicon and title to your html
- @mohammadshbeeb11
.
Join 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