@TedJenkler
Posted
Hi @Saul077,
Nice project! I have a couple of suggestions for improvement:
Centering a Div (Alternative Method): A fun technique to know is centering a div using position: relative for the parent and position: absolute for the child, with top: 50%, left: 50%, and transform: translate(-50%, -50%). Although the first method (using Flexbox) is better in most cases, this method is handy when you need to center content that overlaps.
Semantic HTML: Consider using semantic HTML to improve accessibility and SEO. For example, you could use a <main> tag and replace unnecessary divs. Flexbox can help you simplify your layout by using just one container for the entire page, with Flex on the body and a flex column for the card.
Heading Usage: For headings, consider using an <h2> tag for the title of your content, as this is the correct heading level for this project.
Keep up the good work!
Best, Teodor
Marked as helpful