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
Jam ☀️
@jameshih
Use flexbox display: flex; justify-content: center; align-items: center;
3 replies
0 recast
10 reactions
welter
@fun
I AM BUT WHY IS THIS NOT WORKING
2 replies
0 recast
0 reaction
Phil Cockfield
@pjc
Or use CSS-Grid (alt to Flexbox). That's CSS in JS, but translate to whatever technique you're using. Place that style on the parent element - and the child element will be centered vertically and horizontally. For X/Y control, use: justifyContent: 'center', alignContent: 'center', accordingly🙌
0 reply
0 recast
1 reaction
Greg
@greg
this
0 reply
0 recast
0 reaction