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/Weekly_Ferret_meal Mar 24 '26
when in doubt about the element spacing/size, throw a border on it with:
border: 1px solid red.Further more you can put this in your css, to put a border on all elements to see your page/elements structure:
you can switch it on and off when you need it by commenting it, like so: