Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS border shorthand causes issues in Outlook 2007/2010 #91

Closed
egid opened this issue Oct 24, 2011 · 3 comments
Closed

CSS border shorthand causes issues in Outlook 2007/2010 #91

egid opened this issue Oct 24, 2011 · 3 comments

Comments

@egid
Copy link

egid commented Oct 24, 2011

Premailer is collapsing border attributes into shorthand (which I didn't even know existed! cool.) that is working in the majority of clients. It fails, however, in Outlook 2007 and 2010, turning the border black.

border-color: #efefef#dddddd#cccccc;
border-style: solid;
border-width: 1px 1px 2px;

I have done some testing, and even with shorthand that includes all four values for width and color (1px 1px 2px 1px, etc) it produces the same black border output. For maximum compatibility, it looks like shorthand should be avoided when collapsing CSS.

@stammy
Copy link

stammy commented Nov 9, 2011

I've run into this issue as well with Gmail:

this (before premailer) did not display:
border: 1px solid #d4d6d7;
border-left-color: #c9cccd;
border-right-color: #c9cccd;
border-bottom: 2px solid #b1b7b9;

@akzhan
Copy link
Member

akzhan commented Nov 9, 2011

Vote to eliminate shorthands.

@stammy
Copy link

stammy commented Nov 9, 2011

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants