I can't apply justify-content: center to div #tailwind

Please guys tell me why i cannot apply justify-content: center... It works in the navbar. Sorry for the noob question
15 Replies
Neto
Neto•2y ago
you need w-full but for next only text-center
Tolek Bajer
Tolek BajerOP•2y ago
@Neto ok, but what is a reason I cannot simply apply justify-center to that div? does tailwind block it due to lack of other properties? When I add it in devtools it works fine
Neto
Neto•2y ago
you only set the height to be max not the width
Tolek Bajer
Tolek BajerOP•2y ago
Tolek Bajer
Tolek BajerOP•2y ago
still not working
Neto
Neto•2y ago
one second
barry
barry•2y ago
works fine for me must be something outside doing it
Tolek Bajer
Tolek BajerOP•2y ago
ok thanks guys, when i find out whats going on i'll give you a sign 🙂
Neto
Neto•2y ago
Tolek Bajer
Tolek BajerOP•2y ago
maybe due to fact im exporting those two components to the page. I've just installed next and tailwind, anyway as I said i'll give you a sign
deforestor
deforestor•2y ago
w-full is 100% of the parent, so I'd check the main layout's css
Tolek Bajer
Tolek BajerOP•2y ago
ok im moron, guess thats because of that, i've changed folder structure...
Tolek Bajer
Tolek BajerOP•2y ago
have to update content config
deforestor
deforestor•2y ago
did it work?
Tolek Bajer
Tolek BajerOP•2y ago
yep, it turned out to be guilty... thanks a lot
Want results from more Discord servers?
Add your server