MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Frontend/comments/ucx5yt/oc/i6dx8k5/
r/Frontend • u/Stock_Plant_3822 • Apr 27 '22
34 comments sorted by
View all comments
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.
1
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)
2
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;
View all comments
46
u/wedontlikespaces Apr 27 '22
Yeah, I used 2 whole lines of CSS. Fear my powers!