Hey W,

Stylesheets are often unreliable in email clients. For many things,
you have to bring the styles inline – <img style="display:block"
src="blah" alt="blah" />

There's a handy guide to various cross-client compatibility over here:
http://htmlemailboilerplate.com/


Regards,
Barney Carroll

[email protected]
+44 7429 177278

barneycarroll.com


On 21 May 2012 17:34, J Mi <[email protected]> wrote:
>
> Hey All,
>
> Does anyone know how to make the display:block attribute work in Outlook 2007 
> & 2010 for images? I used inline-style sheets and it doesn't work.
>
> I also tried declaring it in the CSS stylesheet but it didn't work:
>
> <style type="text/css">
>  /** outlook adjustment **/
> v\:* {
>    behavior: url(#default#VML);
>    display:inline-block;
> }
> body {
>    background-color:#EAF1F4;
>    margin:0;
>    padding:0;
>    font-family: Helvetica, Arial, sans-serif;/*Outlook 2010 adjustment*/
> }
> img{display:block;border:solid 1px #00fecc;}/*Outlook 2010 test*/
>    .ReadMsgBody { width: 100%;}
>    .ExternalClass {width: 100%;}
>      .yshortcuts,
>  .yshortcuts a,
>  .yshortcuts a:link,
>  .yshortcuts a:visited,
>  .yshortcuts a:hover
>  {color: rgb(13, 142, 226);text-decoration:none;}
> </style>
>
>
> Thanks!
> W
>> ______________________________________________________________________
>> css-discuss [[email protected]]
>> http://www.css-discuss.org/mailman/listinfo/css-d
>> List wiki/FAQ -- http://css-discuss.incutio.com/
>> List policies -- http://css-discuss.org/policies.html
>> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
> ______________________________________________________________________
> css-discuss [[email protected]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to