Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

How to make mails responsives?


Hello, I purchased a commercial lisence for the Admin Bootstrap 5 theme (most specifically the demo 2 views) available at https://themes.getbootstrap.com/product/keen-the-ultimate-bootstrap-admin-theme/.

I use Laravel and I have implement a fully working authentification system.

After the sign up, the user is redirected to a verify email page (I used the one in "demo2/authentication/general/verify-email.html").

In the background, the registered user receive an email to verify its email. The HTML I used for the email verification is available at "demo2/authentication/email/verify-email.html").

This verification email displays correctly on Desktop, but on tablet and mobile view the design is not responsive (there is a scroll bar and the content does not adapt to the viewport width).

Is it possible to make it responsive?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (6)


Use percentages for your tables and pictures instead of set widths to let them scale depending on the screen size slope 2.
Apply many designs depending on the screen size of the device using CSS media queries.



This article is so deep but i have one thing that can make you headache this game Five Nights at Freddy's, it is so deep that it can make you scared. try it!



Making emails responsive is crucial for ensuring they look great on all devices. I recommend using a mobile-first design Spectra Precision Laser HL700 Laserometer approach and employing CSS media queries to adapt layouts. Testing emails across various screen sizes helps optimize readability and user experience, making your communications more effective and engaging.



Hi Sean, thank you for your answer. I tried to add a meta viewport but it seems to not work well. I have version 3.0.8 of the verify-email.html code, and this is how it renders on my mail service (Mailtrap).

- Desktop: https://postimg.cc/XXqBM7vd
- Tablet: https://postimg.cc/zyZyRCFF
- Mobile: https://postimg.cc/MvjcTPVG

Is there anything to do besides copy/pasting the email code that is in the HTML file? Maybe some sort of HTML headers for mail clients?

Thank you in advance, best.

Anwar



Hi,

Thanks for the detailed info.

This issue is caused by a long URL that can not fit into the small-width container. Please try to use some CSS to break the long URL: https://developer.mozilla.org/en-US/docs/Web/CSS/word-break

The layout itself responsive and the issue is caused by the long URL text.

Regards,
Sean



Hi,

Thank you for choosing our Keen theme.

Could you please send us a screenshot of the issue? Have you tried to check the original HTML template from it's preview URL

As per our checking this email template looks fine in a smaller device width.
Please let us know how we can reproduce this issue.

Regards,
Sean


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(