On Mon, May 21, 2012 at 12:34 PM, J Mi <junk...@live.com> 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 [css-d@lists.css-discuss.org]
>> 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/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


A true inline style should work, like:

<img src="my.jpg" width="100" height="100" style="display: block;" />

HTH

-- 

Tom Livingston | Senior Interactive Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | mlinc.com
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
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