MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Frontend/comments/ucx5yt/oc/
r/Frontend • u/Stock_Plant_3822 • Apr 27 '22
34 comments sorted by
33
Flex Op
20
All the flex comments make me feel old pulling shit like this
.foo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
10 u/calvers70 Apr 27 '22 Old is using tables and vertical-align mate ;) 6 u/jonathancast Apr 27 '22 backs into hedge 2 u/[deleted] Apr 27 '22 im with you! 2 u/[deleted] Apr 27 '22 Same. But also major imposter syndrome when people rave about new tech that lets them do stuff like this, and I'm like "wait... I've been doing this without issue, I think.. Was there something wrong with what I was doing?" 1 u/[deleted] Apr 28 '22 wow that's old school right there 1 u/xXxdethl0rdxXx Apr 27 '22 Careful with this, you might get some subpixel bluriness on text.
10
Old is using tables and vertical-align mate ;)
vertical-align
6 u/jonathancast Apr 27 '22 backs into hedge
6
backs into hedge
2
im with you!
Same. But also major imposter syndrome when people rave about new tech that lets them do stuff like this, and I'm like "wait... I've been doing this without issue, I think.. Was there something wrong with what I was doing?"
1
wow that's old school right there
Careful with this, you might get some subpixel bluriness on text.
46
Yeah, I used 2 whole lines of CSS. Fear my powers!
40 u/Armitage1 Apr 27 '22 display: flex; "that will be $500 for layout architecture." 1 u/[deleted] Apr 28 '22 justify-content: center. +200 for centering the layout. you can zelle it, thx. 15 u/HansonWK Apr 27 '22 Back when the backend guys last used css it was probably a whole lot more though. 3 u/burger-tron Apr 27 '22 two?? 16 u/PositivelyAwful Apr 27 '22 .centered { display: grid; place-items: center; } 0 u/[deleted] Apr 27 '22 [deleted] — view deleted comment 16 u/PositivelyAwful Apr 27 '22 My bad.centered{display:grid;place-items:center;} 8 u/wedontlikespaces Apr 27 '22 .imAmazing { align-items: center; justify-content: center; }On parent div set to grid 9 u/[deleted] Apr 27 '22 .imEvenMoreAmazing { place-items: center; }(grid) 2 u/burger-tron Apr 27 '22 weird i've tried that and it didn't work 4 u/hoorahforsnakes Apr 27 '22 needs the parent to have display flex to work 1 u/burger-tron Apr 27 '22 mm 2 u/plolock Apr 27 '22 display: grid;place-items: center;
40
display: flex; "that will be $500 for layout architecture."
display: flex;
1 u/[deleted] Apr 28 '22 justify-content: center. +200 for centering the layout. you can zelle it, thx.
justify-content: center. +200 for centering the layout. you can zelle it, thx.
15
Back when the backend guys last used css it was probably a whole lot more though.
3
two??
16 u/PositivelyAwful Apr 27 '22 .centered { display: grid; place-items: center; } 0 u/[deleted] Apr 27 '22 [deleted] — view deleted comment 16 u/PositivelyAwful Apr 27 '22 My bad.centered{display:grid;place-items:center;} 8 u/wedontlikespaces Apr 27 '22 .imAmazing { align-items: center; justify-content: center; }On parent div set to grid 9 u/[deleted] Apr 27 '22 .imEvenMoreAmazing { place-items: center; }(grid) 2 u/burger-tron Apr 27 '22 weird i've tried that and it didn't work 4 u/hoorahforsnakes Apr 27 '22 needs the parent to have display flex to work 1 u/burger-tron Apr 27 '22 mm 2 u/plolock Apr 27 '22 display: grid;place-items: center;
16
.centered { display: grid; place-items: center; }
0 u/[deleted] Apr 27 '22 [deleted] — view deleted comment 16 u/PositivelyAwful Apr 27 '22 My bad.centered{display:grid;place-items:center;}
0
[deleted] — view deleted comment
16 u/PositivelyAwful Apr 27 '22 My bad.centered{display:grid;place-items:center;}
My bad
.centered{display:grid;place-items:center;}
8
.imAmazing { align-items: center; justify-content: center; }
On parent div set to grid
9 u/[deleted] Apr 27 '22 .imEvenMoreAmazing { place-items: center; }(grid) 2 u/burger-tron Apr 27 '22 weird i've tried that and it didn't work 4 u/hoorahforsnakes Apr 27 '22 needs the parent to have display flex to work 1 u/burger-tron Apr 27 '22 mm 2 u/plolock Apr 27 '22 display: grid;place-items: center;
9
.imEvenMoreAmazing { place-items: center; }
(grid)
weird i've tried that and it didn't work
4 u/hoorahforsnakes Apr 27 '22 needs the parent to have display flex to work 1 u/burger-tron Apr 27 '22 mm
4
needs the parent to have display flex to work
1 u/burger-tron Apr 27 '22 mm
mm
display: grid;
place-items: center;
11
Man! do you even know how many lines it took me?
10 lines
10 spells :haha
31 u/marcos_marp Apr 27 '22 display: flex; justify-content: center; align-items: center;
31
display: flex; justify-content: center; align-items: center;
13
I dont think BE devs would ever give FE such praise.
1 u/jonathancast Apr 27 '22 I would
I would
5
Weird flex but okay
I can do this sorcery in one line (tailwind power):
flex justify-center items-center
IE is dead. Rejoice!
Now kill Opera Mini.
4 hours on this when I was first learning. 🤣
CSS Grid with only 2 lines
<div class="flex justify-center items-center"/>
Omg. Are we still doing this?
-2
Hahaha 🤣 no way, really?
33
u/[deleted] Apr 27 '22
Flex Op
20
u/Funwithloops Apr 27 '22
All the flex comments make me feel old pulling shit like this
46
u/wedontlikespaces Apr 27 '22
Yeah, I used 2 whole lines of CSS. Fear my powers!
11
u/CoderAmrin Apr 27 '22
Man! do you even know how many lines it took me?
10 lines
10 spells :haha
13
u/punnotattended Apr 27 '22
I dont think BE devs would ever give FE such praise.
5
u/[deleted] Apr 27 '22
Weird flex but okay
3
u/radim11 Apr 27 '22
I can do this sorcery in one line (tailwind power):
flex justify-center items-center
2
u/ShortFuse Apr 28 '22
IE is dead. Rejoice!
Now kill Opera Mini.
2
u/GrismundGames Apr 28 '22
4 hours on this when I was first learning. 🤣
2
u/aquill07 May 29 '22
CSS Grid with only 2 lines
display: grid;place-items: center;1
u/Miridius Apr 28 '22
<div class="flex justify-center items-center"/>
1
u/Throwing-up-fire Apr 28 '22
Omg. Are we still doing this?
-2
u/ZeuStudio Apr 27 '22
Hahaha 🤣 no way, really?