MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1r2056d/html_programmer/o4ykt7f/
r/programminghumor • u/StunningRaise8906 • Feb 11 '26
36 comments sorted by
View all comments
Show parent comment
5
Just use <center>
1 u/[deleted] Feb 14 '26 dont work on firefox i think 1 u/lnee94 Feb 15 '26 Thats deprcated 1 u/Purple_Ice_6029 Feb 15 '26 1 u/lnee94 Feb 15 '26 https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/center 1 u/ghost_tapioca Feb 15 '26 Lol.My guess is that this will involve a position=relative div inside another div with position=absolute, with top and bottom margins set as a proportion of your parent component's height.
1
dont work on firefox i think
Thats deprcated
1 u/Purple_Ice_6029 Feb 15 '26 1 u/lnee94 Feb 15 '26 https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/center
1 u/lnee94 Feb 15 '26 https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/center
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/center
Lol.
My guess is that this will involve a position=relative div inside another div with position=absolute, with top and bottom margins set as a proportion of your parent component's height.
View all comments
Show parent comment
5
u/Purple_Ice_6029 Feb 12 '26
Just use <center>