@PhoenixDev22
Posted
Greeting @surigaoadrian,
I have few suggestions regarding your solution:
- To tackle the accessibility issues, you can add a
<h1>
withclass="sr-only"
(Hidden visually, but present for assistive tech).
.sr-only {
border: 0 !important;
clip: rect(1px, 1px, 1px, 1px) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
white-space: nowrap !important;
}
-
In
height: 490px;
you would never want to set theheight
of the element. Let the content inside the card element dictate the height of it. -
You should use
em
andrem
units .Bothem
andrem
are flexible, Usingpx
won't allow the user to control the font size based on their needs. -
General point , try to put classes directly on anything you want to style
Overall , your solution is good. Hopefully this feedback helps.
Marked as helpful
@surigaoadrian
Posted
@PhoenixDev22 thank you so much for your advice sir, I'll keep that in mind