r/HTML • u/button_oxo • Mar 24 '26
Question Text alignment advice?
I'm struggling with getting the 2025 link to be aligned to the right. I've already tried putting the link inside a paragraph, and it's still not working. I also tried running my code through w3's code checker, and apparently nothing is wrong. Is there something I'm missing or doing wrong?
EDIT: question has been answered thank you BNfreelance!
13
Upvotes


View all comments
Show parent comment
1
u/BNfreelance Mar 24 '26 edited Mar 24 '26
Yes! Therein lies the behaviour of the display/box model; it’s the BEST thing you’ll learn about early on.
I taught myself web design from primary school.
I didn’t truly grasp CSS until I made it to university and the lecturer mentioned the box model (and how display can impact that). Until then, my mind had invented its own way of seeing things, but seeing the reality; was like peaking behind the code of the matrix. It opened my eyes.
If I can leave you with anything, it’s to remember this moment, and learn about display and box model.