Thank you all who have replied to my question. I have managed to "fix" most of 
the styling in hotmail by using inline css. However, I've got a bit of a 
problem with setting a negative top margin. Surprise, surprise, it displays 
fine in the browser and outlook email but margin isn't being applied when 
viewed in hotmail.

Here is the code:

<div style="margin: -100px 0 25px 0;    padding: 25px;"> 
    <h2 style="font: 2.2em/1.5; color: #003366; margin: 0;      padding: 0;     
width: 300px;"><i>Title</i></h2> 
    <span style="font-style: normal;    font-size: 1.2em;">Subtitle</span> 
</div>

Is my code valid?
How do I force the negative top margin to be displayed in hotmail?

By the way, changing the top margin to a +ve 100px doesn't make any difference 
in hotmail, it just isn't being read, and the same goes for padding.

Regards

Bojana

________________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
Steve Green
Sent: Monday, July 03, 2006 9:54 AM
To: [email protected]
Subject: RE: [WSG] email stripping out the css from tables?

We do loads of email testing on a wide variety of email clients and web-based 
email services and I endorse everything in the article that Mathew recommended 
- it's spot on. In particular the web-based services do some horrible things; 
in one email we tested, one of them (Hotmail or Yahoo, I can't remember) 
rewrote the code for a form so it used GET instead of POST, with the result 
that the form no longer worked.
 
Ordinarily I would offer to test the email for you and help fix it (free of 
charge) but I am up to my backside in alligators this week - hence I'm working 
at 1am on Sunday night! I would be happy to do this in the future if anyone has 
a similar problem.
 
Steve Green
Director
Test Partners Ltd / First Accessibility
www.testpartners.co.uk
www.accessibility.co.uk

 
________________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
Bojana Lalic
Sent: 03 July 2006 00:57
To: [email protected]
Subject: RE: [WSG] email stripping out the css from tables?
No, at the moment my css is embedded in the html, in the <head> part. I am 
trying to force the table to display the text with the particular styling. 

Is the following code valid? It probably isn't, as it doesn't work, but how do 
I use inline styles to force the whole table to a certain font style etc. 


<table width="100%"  border="0" cellpadding="0" style="font: 100%/1.5 Verdana, 
Lucida, Arial, Helvetica, sans-serif;">

________________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nick 
Lazar
Sent: Monday, July 03, 2006 9:18 AM
To: [email protected]
Subject: Re: [WSG] email stripping out the css from tables?

Do you have an absolute path to the style sheet in the header? i.e <link 
rel="stylesheet" href="http://your-domain.com/css/stylesheet.css"; 
type="text/css" media="screen" />

I think you'll find it will work if you do this. It's also a good idea to 
include the absolute URL for any images as well....

Regards,

Nick.

On 3 Jul 2006, at 09:39, Bojana Lalic wrote:

Hi all

I am building a newsletter for the email.

I used css initially but then the client complained that html wasn't displaying 
the content as it should be. Instead of displaying two columns it only displays 
one and also strips out all the css.

I have now started modifying the template and plan to use a table (the client 
doesn't care) and a lot of inline styles. So far, I have included a table, 
however, when the newsletter is sent in an email the table doesn't seem to 
preserve the styling any more. It looks perfect in the browser but not in the 
email. Is email stripping out the css out of tables a known problem?

Any tips regarding the use of css and tables in emails would be greatly 
appreciated.

Regards

Bojana Lalic



Global Summit 2006: Technology Connected Futures -- 17-19 October, Sydney, 
Australia. 
Visit our website http://globalsummit.educationau.edu.au for further details.
 
________________________________________
IMPORTANT: This e-mail, including any attachments, may contain private or 
confidential information. If you think you may not be the intended recipient, 
or if you have received this e-mail in error, please contact the sender 
immediately and delete all copies of this e-mail. If you are not the intended 
recipient, you must not reproduce any part of this e-mail or disclose its 
contents to any other party.
This email represents the views of the individual sender, which do not 
necessarily reflect those of education.au limited except where the sender 
expressly states otherwise.
It is your responsibility to scan this email and any files transmitted with it 
for viruses or any other defects.
education.au limited will not be liable for any loss, damage or consequence 
caused directly or indirectly by this email.

******************************************************
The discussion list for http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

nick lazar
8bits Media
http://8bits.com.au
ph: 07 5492 4713
mob: 0423 023 613
skype: nick_l
email: [EMAIL PROTECTED]



******************************************************
The discussion list for http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
****************************************************** 
******************************************************
The discussion list for http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
****************************************************** 
Global Summit 2006: Technology Connected Futures -- 17-19 October, Sydney, 
Australia.  

Visit our website http://www.educationau.edu.au/globalsummit2006 for further 
details.

_________________________________________________________________________________________________________

IMPORTANT: This e-mail, including any attachments, may contain private or 
confidential information. 
If you think you may not be the intended recipient, or if you have received 
this e-mail in error, 
please contact the sender immediately and delete all copies of this e-mail. If 
you are not the intended 
recipient, you must not reproduce any part of this e-mail or disclose its 
contents to any other party.

This email represents the views of the individual sender, which do not 
necessarily reflect those of 
education.au limited except where the sender expressly states otherwise.

It is your responsibility to scan this email and any files transmitted with it 
for viruses or any other 
defects.

education.au limited will not be liable for any loss, damage or consequence 
caused directly or indirectly by this email.



******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to