Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions
welter
@fun
does anybody have a good method of just... centering a div
6 replies
1 recast
19 reactions
Greg Lang
@designheretic
.ππππππ { ππππππππ: ππππππππ; } .πππππ { ππππππππ: ππππππππ; ππππ: π»πΆ%; πππππππππ: ππππππππππ(-π»πΆ%); }
1 reply
0 recast
0 reaction
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