CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 9th, 2003, 04:17 AM
akilwani akilwani is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: karachi pakistan
Posts: 16 akilwani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 20 sec
Reputation Power: 0
Send a message via ICQ to akilwani Send a message via AIM to akilwani Send a message via Yahoo to akilwani
CSS not loading in HTML Emails

Platform: Windows
Browser: IE6
Technology: PHP, HTML & CSS

I'm using PHP for my HTML newsletter. For layout formatting, i'm using CSS.

Problem:
When i test my newsletter page in browser (IE6) it works fine, but when I email that same page to my hotmail a/c, CSS doesn't load.

I'm using following headers:
$headers .= "X-Mailer: PHP\n"; //mailer
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";


I'm unable to find the problem.

Reply With Quote
  #2  
Old March 10th, 2003, 10:07 AM
Rob B Rob B is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Ottawa
Posts: 23 Rob B User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm not sure, but there doesn't seem to be anything in those commands about CSS. Are you incorporating the css in the mail document or is it an include?

Reply With Quote
  #3  
Old March 10th, 2003, 12:20 PM
akilwani akilwani is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: karachi pakistan
Posts: 16 akilwani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 20 sec
Reputation Power: 0
Send a message via ICQ to akilwani Send a message via AIM to akilwani Send a message via Yahoo to akilwani
Yes I'm incorporating CSS in my mail document. IN the begining i was linking my css with my full domain path, then I incorporated in my document. But still its not working.

Reply With Quote
  #4  
Old March 11th, 2003, 12:37 PM
akilwani akilwani is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: karachi pakistan
Posts: 16 akilwani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 20 sec
Reputation Power: 0
Send a message via ICQ to akilwani Send a message via AIM to akilwani Send a message via Yahoo to akilwani
ok guys, i found the solution.

I've putted all of css under body tags. Now CSS is loading perfectly BUT i must say regretful to HOTMAIL for the bad output of their layout.

I've took the snapshot, Check it out here snapshot

Reply With Quote
  #5  
Old January 12th, 2004, 08:46 AM
mindfriction's Avatar
mindfriction mindfriction is offline
<blah>
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Melbourne, Australia
Posts: 473 mindfriction User rank is Sergeant (500 - 2000 Reputation Level)mindfriction User rank is Sergeant (500 - 2000 Reputation Level)mindfriction User rank is Sergeant (500 - 2000 Reputation Level)mindfriction User rank is Sergeant (500 - 2000 Reputation Level)mindfriction User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 6 Days 12 m 20 sec
Reputation Power: 16
Tried to have a look at your screenshot of what Hotmail has done to your HMTL based email with style under body tags..but your link is broken ....

Mines come out pretty weird, it appears my CSS has been applied to the hotmal page LOL!..


Does anyone know how to get css styles working in a HTML based email ??..Ive tried linking my stylesheet with full domain path, that doesnt work...ANd having style tags within body applies all my styles to the email and the surrounding web page of the HTTP mail client i.e. Hotmail
__________________
mind[*]friction
informative articles for web devs: www.melbournechapter.net

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS not loading in HTML Emails


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway