Skip to content

How can I add different paddings depending on screen size? #1297

Answered by gabrielmfern
mucahidyazar asked this question in Q&A
Discussion options

You must be logged in to vote

I am not sure if we need this, this is more of a learn-how-to-write email HTML than a learn-React-Email thing.

Answering your question though, you can just add a <style> tag on your Head and there use media queries. It is the same
as what Tailwind does right now. Just be careful with escaping characters.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jbouhier
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by gabrielmfern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants