jondalrymple Posted June 6, 2006 Share Posted June 6, 2006 Does anyone know a way to get gmail to read CSS? We are sending out an HTML newsletter by email, and I have embedded the CSS in the document head, but subscribers with gmail don't get the right colors fonts or alignment. It seems to be getting some of the CSS because one of the blocks of text is aligned right were everything else is aligned left. Can anyone point me in the right direction? Link to comment Share on other sites More sharing options...
scott100 Posted June 6, 2006 Share Posted June 6, 2006 Instead of putting the styles in the head you could try saving them in an external style sheet, then link that in to the page.http://www.w3schools.com/css/css_howto.aspfor example<link rel="stylesheet" type="text/css" href="http://www.mysite.com/mystyle.css" />where mystyle.css would contain all styles Link to comment Share on other sites More sharing options...
jondalrymple Posted June 6, 2006 Author Share Posted June 6, 2006 Thanks for the reply. Unfortuneatly I've already tried that. We originally had the style sheet as external, but it didn't work either. It seems to be something in Gmail (hotmail and others too) that ignore the CSS. I just wonder if anyone has encountered this and if there is a work around, maybe some special coding that lets the Gmail know that the CSS is there. Link to comment Share on other sites More sharing options...
scott100 Posted June 6, 2006 Share Posted June 6, 2006 You could try setting your styles as !important, that should give them highest priority, but if gmail blocks this then im not sure.http://w3schools.invisionzone.com/index.ph...indpost&p=25403Do your styles work when you put them inline? Link to comment Share on other sites More sharing options...
jondalrymple Posted June 8, 2006 Author Share Posted June 8, 2006 Hey all,Thanks for all the replies and interst. You may be interested to know about this article that I read that seems to have solved my problem. A friend found it for me who is helping me on this issue. Any way according to this article, email clients all have a different preference for how you specify styles to show correctly in their email. If you send HTML newsletters this article will help you learn from others mistakes rather than going through the school of hard knocks.http://www.thinkvitamin.com/features/design/html-emailsSmiles,Jon Link to comment Share on other sites More sharing options...
scott100 Posted June 8, 2006 Share Posted June 8, 2006 You may be interested to know about this article that I read that seems to have solved my problem.Nice article, quite an interesting read. May i ask what method you used to solve your problems, tables and inline styles or style element in the body? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now