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•3y ago
you need w-full but for next only text-center
george
georgeOP•3y 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•3y ago
you only set the height to be max not the width
george
georgeOP•3y ago
george
georgeOP•3y ago
still not working
Neto
Neto•3y ago
one second
barry
barry•3y ago
works fine for me must be something outside doing it
george
georgeOP•3y ago
ok thanks guys, when i find out whats going on i'll give you a sign 🙂
Neto
Neto•3y ago
george
georgeOP•3y 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•3y ago
w-full is 100% of the parent, so I'd check the main layout's css
george
georgeOP•3y ago
ok im moron, guess thats because of that, i've changed folder structure...
george
georgeOP•3y ago
have to update content config
deforestor
deforestor•3y ago
did it work?
george
georgeOP•3y ago
yep, it turned out to be guilty... thanks a lot

Did you find this page helpful?