Different HTML rendering in Explorer, Outlook e-mail

Hello - given the following HTML:

<style type="text/css">
#signature{width:35em;border:1px solid #ededed;font-size:.75em;}
#signature #company_logo{width:5em;height:5.5em;float:left;}
#signature b{font-weight:bold;font-size:1.2em;}
#signature i{font-style:italic;color:#aaaaaa;}
</style>

<div id="signature">
      <div id="company_logo"><img src="#" alt=""/></div>
      <div>
            <div><b>Andrew B. Carter</b> | <i>Network and Descktop Administrator</i></div>
            <div>El Diesco Co</div>
            <div>D: 111.222.3333 | T: 444.555.6666 | F: 777.888.9999</div>
            <div>LDSCOM.com</div>
      </div>
</div>

I am trying to get this to render the same in Outlook as it does in HTML
What changes do I have to make?
Thanks
Explorer.PNG
Outlook.PNG
mlagrangeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

skijCommented:
Most email applications will not respect anything inside of:
<style type="text/css"></style>

You should put the style attributes directly in the elements, like this:

<div id="signature" style="width:35em;border:1px solid #ededed;font-size:.75em;">
      <div id="company_logo" style="width:5em;height:5.5em;float:left;"><img src="#" alt=""/></div>
      <div>
            <div><b style="font-weight:bold;font-size:1.2em;">Andrew B. Carter</b> | <i style="font-style:italic;color:#aaaaaa;">Network and Descktop Administrator</i></div>
            <div>El Diesco Co</div>
            <div>D: 111.222.3333 | T: 444.555.6666 | F: 777.888.9999</div>
            <div>LDSCOM.com</div>
      </div>
</div>

Open in new window

0
mlagrangeAuthor Commented:
Thanks, but the name and contact info is still appearing below the logo.

Only things I changed were the width on the company_logo (5em to 10em)
and the src (added the path to the png):

<div id="signature" style="width:35em;border:1px solid #ededed;font-size:.75em;">
      <div id="company_logo" style="width:10em;height:5.5em;float:left;"><img src="T:\RPA\Logos\NewLDSCOsm.png" alt=""/></div>
      <div>
            <div><b style="font-weight:bold;font-size:1.2em;">Andrew B. Carter</b> | <i style="font-style:italic;color:#aaaaaa;">Network and Descktop Administrator</i></div>
            <div>El Diesco Co</div>
            <div>D: 111.222.3333 | T: 444.555.6666 | F: 777.888.9999</div>
            <div>LDSCOM.com</div>
      </div>
</div>
0
skijCommented:
Change:
float:left
To:
float:none

<div id="signature" style="width:35em;border:1px solid #ededed;font-size:.75em;">
      <div id="company_logo" style="width:10em;height:5.5em;float:none;"><img src="T:\RPA\Logos\NewLDSCOsm.png" alt=""/></div>
      <div>
            <div><b style="font-weight:bold;font-size:1.2em;">Andrew B. Carter</b> | <i style="font-style:italic;color:#aaaaaa;">Network and Descktop Administrator</i></div>
            <div>El Diesco Co</div>
            <div>D: 111.222.3333 | T: 444.555.6666 | F: 777.888.9999</div>
            <div>LDSCOM.com</div>
      </div>
</div>

Open in new window

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Dave BaldwinFixer of ProblemsCommented:
This page https://www.campaignmonitor.com/css/ lists the differences in how many email clients view CSS.
0
hieloCommented:
From your screenshot, it seems that "float" is not supported.  Try using a table:
<style type="text/css">
#signature{width:35em;border:1px solid #ededed;font-size:.75em;}
#company_logo{width:5em !important;}
#signature b{font-weight:bold;font-size:1.2em;}
#signature i{font-style:italic;color:#aaaaaa;}
</style>

<table id="signature" cellspacing="0" cellpadding="0" >
	<tr>
		<td id="company_logo"><img src="#" alt=""></td>
		<td>
			<div><b>Andrew B. Carter</b> | <i>Network and Descktop Administrator</i></div>
			<div>El Diesco Co</div>
			<div>D: 111.222.3333 | T: 444.555.6666 | F: 777.888.9999</div>
			<div>LDSCOM.com</div>
		</td>
	</tr>
</table>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mlagrangeAuthor Commented:
yes, that's the fix. Thanks, again Hielo!
Skij - thanks for you responses, but after changing the float, it forced the logo above the name in the Explorer, just like in Outlook.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.