Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RGBA not working with HTML emails

I am trying to send a HTML email with CSS styling.

I have the code style = 'background-color: rgba(255, 255, 255, 0.4)' and it will not apply it, but rather makes the background completely opaque.

like image 842
MichaelMitchell Avatar asked Feb 17 '23 23:02

MichaelMitchell


1 Answers

It really depends on the support of the mail client you're testing with, but given that RGBA values are a CSS3 feature, I wouldn't bet on much support at all. I'd suggest restricting yourself to RGB, HEX or named colors, and even then depending on the place you are using it, some clients won't support the color attribute at all.

like image 97
scoota269 Avatar answered Mar 05 '23 17:03

scoota269