greghunt / tailpress

Seamlessly add Tailwind to your WordPress site without any build steps.
4 stars 2 forks source link

Problems with margin & padding on a column block #8

Closed sdelon closed 1 year ago

sdelon commented 1 year ago

Hello Greg,

I have a problem when I add classes related to margin or padding. They are simply not taken into account. As you can see on the attachment, I add them on a column block.

Screenshot 2023-01-08 10 15 16

In pure css addition, these margins work correctly, so I don't quite understand what is blocking when adding them with tailwind classes.

Thank you for this great and very useful plugin :-) Have a great day !

Stephanie

greghunt commented 1 year ago

Hi @sdelon , I believe this is because WordPress admin styles are scoped very specifically and override the TW utility classes. In this case, you can try adding ! to your margin class to make sure it's considered important and overrides WP.