Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use bootstrap for designing HTML Email Templates

I need to design an HTML email template which is sent through email to my clients.

I know that for designing an 'html email template':

  • No css files should be linked, all styling should be inline to html.
  • All images should be referenced through online server url and should not be stored locally.

My question is: Can I use bootstrap in html for designing an HTML email without downloading it and linking as a css file locally?

like image 951
Ravi B.P Avatar asked Jan 04 '23 11:01

Ravi B.P


1 Answers

No. Bootstrap is a pre-defined framework containing properties for elements and classes which is used using external css entirely (with the properties for elements and classes being defined in an external file). Since external css can't be used to style e-mails, Bootstrap can't be used either.

One might say that they can copy the code from the Bootstrap.css file and paste it withing <style></style> tags but even that is internal css and e-mails don't allow that. E-mails only allow inline css. So, Bootstrap can't be used in e-mails, and hence not in e-mail templates.

like image 148
Vyom Maitreya Avatar answered Jan 07 '23 18:01

Vyom Maitreya