views:

252

answers:

4

I want to send some msg from our manage system to customers. but i wanna some tags hidden to them. i set css : .hidden{display:none;} , but this does not work.

+4  A: 

Outlook 2007 uses the Microsoft Word engine for rendering HTML which has very limited support for CSS. This page describes the kind of things you can expect to work (display is one of the "not supported" ones).

Unfortunately, there's not much you can do. You can enclose the element in HTML comments <!-- ... --> which would stop it from rendering, but that's about it.

Dean Harding
This answer seems inaccurate according to the linked document. It lists `display` as supported for everything with CORE or better. A `<div>`, for example, is listed as COREEXTENDED.
kibibu
My mistake, it lists `display` as a supported property in one spot and unsupported in another.
kibibu
you are right. i also found this in this document:http://www.inxmail.com/en_PDFs/inxmail_guide_outlook2007.pdfit says: The CSS property display is no longer supported by Outlook 2007. To implement the various 2007display types, it is necessary to use table layouts or the corresponding HTML tags.
chris
A: 

Try this - may this will work for you

.hidden{visibility: hidden;}
Pranay Rana
Also you can try .hidden{width: 0px; height:0px;}
Pranay Rana
I tried two ways you said, but it seems not work at all...
chris
have no alternate right now
Pranay Rana
+1  A: 

Outlook 2007 has limited support for CSS and HTML. Read this article for more information.

If class-based CSS rules don't work, try ID-based CSS rules. Just try to keep your rules as simple as possible.

You can use this tool to validate your HTML and CSS for use in Outlook 2007.

Prutswonder
thank you for your information.
chris
A: 

This is not really an answer but you should see this:

http://www.email-standards.org/clients/microsoft-outlook-2007/

This is why display: none and a lot of other things do not work on outlook 2007.

Rui Carneiro