Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > outlook 2007 and css

outlook 2007 and css
Thread Tools
andi*pandi
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Offline
Reply With Quote
Apr 19, 2007, 02:59 PM
 
I'm surprised there hasn't been a thread here on that... search came up blank.

I must have been under a rock because we've just been told we can no longer use CSS at all in html emails, since outlook 2007 was released around January. I've been googling to see if this is true, I can find microsoft's page that basically says they only support css1 in the new outlook with the Word 2007 rendering. However my clients are panicked and don't want to allow css at all. My emails have been using tables for layout and inline styles and have been tested and work in other email apps (no float or positioning tags). I don't have 2007 yet though so I don't know if my emails would work. The plugin microsoft is recommending for testing is an exe.

Before I trash my workflow, does anyone else have any experience with outlook 2007 they'd like to share?
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Apr 19, 2007, 04:02 PM
 
Are your inline styles simply text formatting? If so, if Outlook 2007 indeed only supports CSS 1, this should work, no?
     
andi*pandi  (op)
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Offline
Reply With Quote
Apr 19, 2007, 04:13 PM
 
for the most part just text formatting, background color, some padding/margin. I think it should be fine, but I'm being told NO TEH CSS IS BAD ACCUCAST SAID SO! etc. And without something to test against, I don't have any backing to support my thought.

I did find someone in the building who is "testing" the new version, so that's something.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Apr 19, 2007, 04:33 PM
 
Originally Posted by andi*pandi View Post
for the most part just text formatting, background color, some padding/margin. I think it should be fine, but I'm being told NO TEH CSS IS BAD ACCUCAST SAID SO! etc. And without something to test against, I don't have any backing to support my thought.

I did find someone in the building who is "testing" the new version, so that's something.
Do you have access to a PC or an Intel based Mac where you can setup an Outlook test environment using VMWare or something?
     
andi*pandi  (op)
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Offline
Reply With Quote
Apr 20, 2007, 08:00 PM
 
I have a PC, but am not allowed to install software on it (password denied type of thing). I put in a request to have Outlook 2007 installed, and the SST guy called back wondering why I needed it. I explained, and he said they were still testing it and I should report any problems customers/recipients report to him. When I said I'd rather test it before annoying all our mailing list, and I didn't want to send a helpdesk request each time I tested an email, he grudgingly admitted that made more sense.

Oy. This will turn into a kerfuffle.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Apr 20, 2007, 09:07 PM
 
Kerfuffle. I like that word.
     
Ozmodiar
Mac Elite
Join Date: Apr 2002
Location: Quetzlzacatenango
Status: Offline
Reply With Quote
Apr 30, 2007, 12:59 AM
 
Yes, Outlook 2007 has become a major headache for HTML e-mail. You can still lay everything out in tables with inline CSS, but there are a lot of things it gets wrong. Microsoft has a list of supported CSS on their site somewhere, but my experience has been pretty hit or miss.

There is no longer support for positioning or background images, but you can still "float" images with the align attribute. Also, make sure you explicitly set the width and height of the image in your code or it may render as a disproportionate thumbnail in Outlook. I haven't been able to correlate anything to when Outlook decides not to load the image at its natural width and height, it just seems to randomly do it when it wants.

Another piece of advice is not to rely on padding and line-height styles. <br /> tags seem to be more reliable if you're trying to get padding above or below content. It seems to do ok with padding-left and padding-right, though.
     
elppa
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
May 27, 2007, 02:30 PM
 
Why can't MS just stick the IE7 engine in Outlook to render HTML email?

It would make sense surely?
     
Mithras
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
May 28, 2007, 12:08 PM
 
^^ Because of the security risk. They've been beaten over the head with what a bad idea that is, so they're sticking to very, very simple HTML. It's the right move, in my opinion.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 28, 2007, 12:13 PM
 
Originally Posted by Mithras View Post
^^ Because of the security risk. They've been beaten over the head with what a bad idea that is, so they're sticking to very, very simple HTML. It's the right move, in my opinion.

If they could strip out the Active X stuff from IE 7 so that there was no bridge into the user's system and all it did was render HTML (perhaps offering to block images from loading like Thunderbird does), it would probably be fine...

I suspect that this would be difficult to do though.
     
elppa
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
May 28, 2007, 03:50 PM
 
How come webkit can be transplanted into any app going, from RealPlayer to TextMate to Mail then? Surely similar (theoretical) security problems?
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 28, 2007, 04:06 PM
 
Originally Posted by elppa View Post
How come webkit can be transplanted into any app going, from RealPlayer to TextMate to Mail then? Surely similar (theoretical) security problems?
No ActiveX, the same reason why Firefox is a much more secure choice in Windows.
     
Catfish_Man
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
May 29, 2007, 05:11 PM
 
Originally Posted by elppa View Post
How come webkit can be transplanted into any app going, from RealPlayer to TextMate to Mail then? Surely similar (theoretical) security problems?
Certainly any security holes found in webkit will apply to apps that use it. At least Safari's track record is a lot better than IE...
     
Thinine
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
May 30, 2007, 03:24 AM
 
Any security holes in Word's HTML engine will be transplanted to Outlook now, so I'm not sure how much better this will be. Really it just makes for even worse CSS support from MS.
     
Ozmodiar
Mac Elite
Join Date: Apr 2002
Location: Quetzlzacatenango
Status: Offline
Reply With Quote
Jun 3, 2007, 03:40 AM
 
Microsoft's reason for changing the rendering engine in Outlook 2007 is that Outlook has always used Word for creating HTML e-mails, so they wanted the same engine to display them. I'm not sure any official MS documentation has ever mentioned security as the reason for switching.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:34 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,