Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

welter pfp
welter
@fun
does anybody have a good method of just... centering a div
6 replies
1 recast
19 reactions

Greg Lang pfp
Greg Lang
@designheretic
.πš™πšŠπš›πšŽπš—πš { πš™πš˜πšœπš’πšπš’πš˜πš—: πš›πšŽπš•πšŠπšπš’πšŸπšŽ; } .πšŒπš‘πš’πš•πš { πš™πš˜πšœπš’πšπš’πš˜πš—: πšŠπš‹πšœπš˜πš•πšžπšπšŽ; πš•πšŽπšπš: 𝟻𝟢%; πšπš›πšŠπš—πšœπšπš˜πš›πš–: πšπš›πšŠπš—πšœπš•πšŠπšπšŽπš‡(-𝟻𝟢%); }
1 reply
0 recast
0 reaction

Greg Lang pfp
Greg Lang
@designheretic
Give your div the child class, and make sure its parent element has position: relative (Note you can center it vertically this way by adding top: 50%; and transform: translateY(-50%);) (If doing both horizontal and vertical centering, you can use transform: translate(-50%, -50%); to specify both X and Y at once)
0 reply
0 recast
0 reaction