|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
include css in mail()
hi, in my site i got a "tell a friend" section, where user can tell their friends about my site. and then i will send out an email to their friends.
my problem is, i dono how to include css in tat email. how should i do tat? |
|
#2
|
||||
|
||||
|
Just stick it in the <head> section.
__________________
And you know I mean that. |
|
#3
|
|||
|
|||
|
err...something like this??
mail($mesg, $subject, $headers... part of my css: Code:
body {
background-color: #fffcfc;
scrollbar-face-color: #f7eeee;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #f7eeee;
scrollbar-3dlight-color: #F5E9E9;
scrollbar-arrow-color: #800000;
scrollbar-track-color: #fbf5f5;
scrollbar-darkshadow-color: #cc9999;
}
put in part of the message: PHP Code:
and send it out?? |
|
#4
|
||||
|
||||
|
As I said before, stick it in <head>
PHP Code:
|
|
#5
|
|||
|
|||
|
i tried u way u show me..but the style still now showing up in my email. wat is wrong?
is it because the email i sent to got it's own style and my style cannot overwrite the email style...for eg hotmail?? Last edited by joyce : October 20th, 2002 at 10:40 PM. |
|
#6
|
|||
|
|||
|
I don't think you'll get the scrollbar things (which btw are non-standard) to work in your e-mail prog, since those are meant for IE only. One reason for not using them...
|
|
#7
|
|||
|
|||
|
To use HTML/styles in an e-mail it's got to be sent with the appopriate MIME type.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > include css in mail() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|