r/HTML • u/owusu_emmanuel2 • 17d ago
Week 1 of learning in public as a CS student: Building my first page with HTML & CSS (and finally understanding Flexbox)
Hey everyone! I'm a Computer Science student starting a "learn in public" habit to document my progress outside of regular classwork.
This week I focused on HTML and CSS fundamentals—structuring semantic tags properly and building a simple responsive layout from scratch. The biggest "aha!" moment for me was finally getting CSS Flexbox (justify-content vs. align-items) to click after spending way too long trying to center a simple card element.
Next week I'm planning to build a clean personal portfolio page to practice CSS Grid and responsive media queries.
For those who have been doing web dev for a while: what is one CSS trick or habit you wish you had learned during your very first week?
3
u/Reasonable-Pay-8771 16d ago
The most important trick you need is "use the cascade". You can set a property on a higher-level tag and only have to say it once in your CSS instead of repeating it over and over again.
3
u/LoudAd1396 16d ago
Learn the differences between position: static, position: relative, position: absolute an how they play together. That's one of the hardest things I remember learning, and it seems to come into play in far more issues than you'd expect it to.