trr Posted May 19, 2014 Share Posted May 19, 2014 We have an issue with css not working on the emails sent (css doesn't seem to load, classes doesn't work). We've just upgraded to 5.3.7 (didn't work on earlier versions either). The css I'm trying to add to the Global Email CSS Styling: @media only screen and (max-width: 660px) { table[class=w0], td[class=w0] { width: 0 !important; } table[class=w10], td[class=w10], img[class=w10] { width:10px !important; } table[class=w15], td[class=w15], img[class=w15] { width:5px !important; } table[class=w30], td[class=w30], img[class=w30] { width:10px !important; } table[class=w60], td[class=w60], img[class=w60] { width:10px !important; } table[class=w125], td[class=w125], img[class=w125] { width:80px !important; } table[class=w130], td[class=w130], img[class=w130] { width:55px !important; } table[class=w140], td[class=w140], img[class=w140] { width:90px !important; } table[class=w160], td[class=w160], img[class=w160] { width:180px !important; } table[class=w170], td[class=w170], img[class=w170] { width:100px !important; } table[class=w180], td[class=w180], img[class=w180] { width:80px !important; } table[class=w195], td[class=w195], img[class=w195] { width:80px !important; } table[class=w220], td[class=w220], img[class=w220] { width:80px !important; } table[class=w240], td[class=w240], img[class=w240] { width:180px !important; } table[class=w255], td[class=w255], img[class=w255] { width:185px !important; } table[class=w275], td[class=w275], img[class=w275] { width:135px !important; } table[class=w280], td[class=w280], img[class=w280] { width:135px !important; } table[class=w300], td[class=w300], img[class=w300] { width:140px !important; } table[class=w325], td[class=w325], img[class=w325] { width:95px !important; } table[class=w360], td[class=w360], img[class=w360] { width:140px !important; } table[class=w410], td[class=w410], img[class=w410] { width:180px !important; } table[class=w470], td[class=w470], img[class=w470] { width:200px !important; } table[class=w580], td[class=w580], img[class=w580] { width:280px !important; } table[class=w640], td[class=w640], img[class=w640] { width:300px !important; } table[class*=hide], td[class*=hide], img[class*=hide], p[class*=hide], span[class*=hide] { display:none !important; } table[class=h0], td[class=h0] { height: 0 !important; } p[class=footer-content-left] { text-align: center !important; } #headline p { font-size: 30px !important; } .article-content, #left-sidebar{ -webkit-text-size-adjust: 90% !important; -ms-text-size-adjust: 90% !important; } .header-content, .footer-content-left {-webkit-text-size-adjust: 80% !important; -ms-text-size-adjust: 80% !important;} img { height: auto; line-height: 100%;} } #outlook a { padding: 0; } body { width: 100% !important; } .ReadMsgBody { width: 100%; } .ExternalClass { width: 100%; display:block !important; } body { background-color: #ececec; margin: 0; padding: 0; } img { outline: none; text-decoration: none; display: block;} br, strong br, b br, em br, i br { line-height:100%; } h1, h2, h3, h4, h5, h6 { line-height: 100% !important; -webkit-font-smoothing: antialiased; } h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: blue !important; } h1 a:active, h2 a:active, h3 a:active, h4 a:active, h5 a:active, h6 a:active { color: red !important; } h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited { color: purple !important; } table td, table tr { border-collapse: collapse; } .yshortcuts, .yshortcuts a, .yshortcuts a:link,.yshortcuts a:visited, .yshortcuts a:hover, .yshortcuts a span { color: black; text-decoration: none !important; border-bottom: none !important; background: none !important; } code { white-space: normal; word-break: break-all; } #background-table { background-color: #ececec; } #top-bar { border-radius:6px 6px 0px 0px; -moz-border-radius: 6px 6px 0px 0px; -webkit-border-radius:6px 6px 0px 0px; -webkit-font-smoothing: antialiased; background-color: #706e70; color: #FFFFFF; } #top-bar a { font-weight: bold; color: #FFFFFF; text-decoration: none;} #footer { border-radius:0px 0px 6px 6px; -moz-border-radius: 0px 0px 6px 6px; -webkit-border-radius:0px 0px 6px 6px; -webkit-font-smoothing: antialiased; } body, td { font-family: HelveticaNeue, sans-serif; } .header-content, .footer-content-left, .footer-content-right { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; } .header-content { font-size: 12px; color: #FFFFFF; } .header-content a { font-weight: bold; color: #FFFFFF; text-decoration: none; } #headline p { color: #EA7A76; font-family: HelveticaNeue, sans-serif; font-size: 36px; text-align: center; margin-top:0px; margin-bottom:30px; } #headline p a { color: #EA7A76; text-decoration: none; } .article-title { font-size: 18px; line-height:24px; color: #c25130; font-weight:bold; margin-top:0px; margin-bottom:18px; font-family: HelveticaNeue, sans-serif; } .article-title a { color: #c25130; text-decoration: none; } .article-title.with-meta {margin-bottom: 0;} .article-meta { font-size: 13px; line-height: 20px; color: #ccc; font-weight: bold; margin-top: 0;} .article-content { font-size: 13px; line-height: 18px; color: #444444; margin-top: 0px; margin-bottom: 18px; font-family: HelveticaNeue, sans-serif; } .article-content a { color: #3f6569; font-weight:bold; text-decoration:none; } .article-content img { max-width: 100% } .article-content ol, .article-content ul { margin-top:0px; margin-bottom:18px; margin-left:19px; padding:0; } .article-content li { font-size: 13px; line-height: 18px; color: #444444; } .article-content li a { color: #3f6569; text-decoration:underline; } .article-content p {margin-bottom: 15px;} .footer-content-left { font-size: 12px; line-height: 15px; color: #FFFFFF; margin-top: 0px; margin-bottom: 15px; } .footer-content-left a { color: #FFFFFF; font-weight: bold; text-decoration: none; } .footer-content-right { font-size: 11px; line-height: 16px; color: #FFFFFF; margin-top: 0px; margin-bottom: 15px; } .footer-content-right a { color: #FFFFFF; font-weight: bold; text-decoration: none; } #footer { background-color: #706E70; color: #FFFFFF; } #footer a { color: #FFFFFF; text-decoration: none; font-weight: bold; } #permission-reminder { white-space: normal; } #street-address { color: #FFFFFF; white-space: normal; } Please advise. Thanks 0 Quote Link to comment Share on other sites More sharing options...
texhead Posted January 13, 2015 Share Posted January 13, 2015 Did you fix this or is this thread taboo? I have the same prob! 0 Quote Link to comment Share on other sites More sharing options...
trr Posted January 13, 2015 Author Share Posted January 13, 2015 Didn't work.. Had to add styling inline. 0 Quote Link to comment Share on other sites More sharing options...
texhead Posted January 13, 2015 Share Posted January 13, 2015 I have been working on this for the last 6 hours. (:-( I found a mix of inline and CSS works. The 'body' tag does nothing!!!!!! so everything has to be in <p> paragraphs and TDs etc. Also found wopping big crappy mess when working with Outlook 2013 and a table, it renders wrong, text on the bottom of each cell and the height of a cell can't be controlled. Oh well back tomorrow, need a good sleep now. it's after 11pm Thanks for the reply... 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.