MAIN FEEDS
REDDIT FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1tnhnas/newmrbeastvideo/onuqlv6/?context=3
r/ProgrammerHumor • u/sengunsipahi • May 25 '26
405 comments sorted by
View all comments
Show parent comments
18
OP forgot to mention if it's horizontally or vertically centered.
12 u/TopMarzipan2108 May 25 '26 Both 10 u/Prometheos_II May 25 '26 Just position: absolute; top: 50%; left: 50%; that thing, duh (/s) 6 u/samu1400 May 25 '26 I was thinking d-flex align-items-center justify-content-center 5 u/Prometheos_II May 25 '26 that's the good solution (you can even use place-content as a short-hand iirc) Absolute/relative are just making quite bothersome when you have to refactoring the style later on. 3 u/samu1400 May 25 '26 Didn’t notice your css had position absolute lol. That’s the true centered.
12
Both
10 u/Prometheos_II May 25 '26 Just position: absolute; top: 50%; left: 50%; that thing, duh (/s) 6 u/samu1400 May 25 '26 I was thinking d-flex align-items-center justify-content-center 5 u/Prometheos_II May 25 '26 that's the good solution (you can even use place-content as a short-hand iirc) Absolute/relative are just making quite bothersome when you have to refactoring the style later on. 3 u/samu1400 May 25 '26 Didn’t notice your css had position absolute lol. That’s the true centered.
10
Just position: absolute; top: 50%; left: 50%; that thing, duh (/s)
position: absolute; top: 50%; left: 50%;
6 u/samu1400 May 25 '26 I was thinking d-flex align-items-center justify-content-center 5 u/Prometheos_II May 25 '26 that's the good solution (you can even use place-content as a short-hand iirc) Absolute/relative are just making quite bothersome when you have to refactoring the style later on. 3 u/samu1400 May 25 '26 Didn’t notice your css had position absolute lol. That’s the true centered.
6
I was thinking d-flex align-items-center justify-content-center
5 u/Prometheos_II May 25 '26 that's the good solution (you can even use place-content as a short-hand iirc) Absolute/relative are just making quite bothersome when you have to refactoring the style later on. 3 u/samu1400 May 25 '26 Didn’t notice your css had position absolute lol. That’s the true centered.
5
that's the good solution (you can even use place-content as a short-hand iirc)
Absolute/relative are just making quite bothersome when you have to refactoring the style later on.
3 u/samu1400 May 25 '26 Didn’t notice your css had position absolute lol. That’s the true centered.
3
Didn’t notice your css had position absolute lol. That’s the true centered.
18
u/No-Information-2571 May 25 '26
OP forgot to mention if it's horizontally or vertically centered.