Serenade Posted April 10, 2015 Share Posted April 10, 2015 I've been messing around with this for hours, and I have come to conclusion there must be a bug with WHMCS. I have about 30 lines of custom CSS which I have tried putting in both the "Global Email CSS Styling" area, and in the <head> tag within the "Global Email Header Content" area. I have also tried using compressed and uncompressed CSS. Without fail, it will not work. I attribute this to being a bug since the email appears fine in Utilities -> Email Message Log, but indifferent of the receiving email client the CSS is not being passed. I have a very important email I need to send within the next 24 hours, and this is a very big problem for me. If anyone could shed some light on this, has a workaround such as hardcoding the css somewhere, or any ideas at all it'd be much appreciated. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted April 10, 2015 Share Posted April 10, 2015 try to use write it inline, email clients such as OutLook, Gmail, and Yahoo, etc handle the email styling differently 0 Quote Link to comment Share on other sites More sharing options...
Serenade Posted April 10, 2015 Author Share Posted April 10, 2015 @media queries can't be written inline. How do I go about inserting that? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted April 10, 2015 Share Posted April 10, 2015 @media queries not supported by many email clients Unfortunately, media queries don’t work everywhere. The most notable, and frustrating, lack of support comes from Gmail—both online in a browser and in the Gmail apps for Android and iOS devices. Gmail is famous for stripping out the head section and any styles and media queries contained within. And, with the introduction of Inbox for Gmail, we can add one more client to that list. There is some talk of Gmail revising their CSS policy, but until that actually happens, designers need to be aware of support for media queries. try to use wide layout 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted April 11, 2015 Share Posted April 11, 2015 Media quires won't be supported by most email readers but it's not a issue as they can be used for popular devices such as the iPhone. However, for all non-media queries CSS you should add it as inline as suggested. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.