Difficulty to center icons in the footer using Tailwind #1394
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
If you include the items-center property in the className of the second div, it will ensure that the content within the div is centered both horizontally and vertically. |
Beta Was this translation helpful? Give feedback.
-
React Email is not WYSIWYG, so you still have to worry about email compatibility when doing your own styles. We do not do any transformations on them before rendering. Also, the preview is just an approximation — we only render the email template and show it through an We provide the See https://www.caniemail.com/features/css-justify-content/ for more info on this. This is a pretty common misconception that always happens to come up around discussions and issues. This would be really great to be documented, but I'm still unsure of how to get this documented. Would love to know your opinions on this :) |
Beta Was this translation helpful? Give feedback.
It turns out that default utilities like
justify-center
anditems-center
in Tailwind CSS don't have good support for Gmail. Therefore, you'll need to find a workaround.You previously mentioned that manual padding is effective. If that's true, have you experimented with approaches such as
className="pl-[50vw]"
orclassName="w-1/2 mx-auto"
?