@TedJenkler
Posted
Hi @degmaa,
Nice project! Here are a couple more tips:
Positioning Trick: To center a card or element without using Flexbox, you can set its position to absolute, then use left: 50%, top: 50%, and transform: translate(-50%, -50%). This technique is great for centering elements both horizontally and vertically.
ARIA Labels for Accessibility: If you're unsure which semantic HTML element to use, opt for a <div> with an aria-label instead. This approach enhances accessibility, especially since the <center> tag is no longer valid in modern HTML and is only retained for compatibility with older codebases. ARIA labels help screen readers understand the purpose of your content.
Hope these tips help!
Best, Teodor
Marked as helpful