472,986 Members | 2,878 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,986 software developers and data experts.

HTML Email, CSS and all that jazz.

8
I realise I am opening a potential can of worms here but I am not looking to get into a debate about the ethics of the issue.

I have been asked to design a content managed html email, its a christmas card, so time is of the essence. My client has asked that the message be customisable as simply as possible. I have designed a web interface using php and its functions that takes user values and sends out the email in HTML format. Its not that part that is the problem,

Its the HTML & CSS layout, I have looked around and it is obviously very hard to get right for everybody (maybe even impossible) but it should still look eligible in HTML format. The design is an image with the customised writing at the bottom (but still on top of the image) CSS z-index and positioning is the obvious solution to this and the content looks fine in outlook and apple mail and other desktop programs like thunderbird, its the webmail applications I am having trouble with (Hotmail, Yahoo - both newest and elder versions).

The obvious thing I have found from my trials is that its all about positioning and webmails lack of support for it. But is there any other way of working around it.

The code I am currently working with as my HTML email body is...

Expand|Select|Wrap|Line Numbers
  1. <div style="background-color:#c69c6d;">
  2.     <span style="z-index:1;"><img src="http://testzone.manifestcomms.co.uk/sandtoft/XmasCard/bg.jpg" /></span>
  3.     <span style="z-index:2; position:absolute; left:150px; top:500px;">
  4.     <table width="450" height="100">
  5.     <tr style="font-weight:bold; font-size:18px;  font-family:Arial, Helvetica, sans-serif; color:#FFFFFF;"><td>RECIPIENT</td></tr><tr></tr><tr></tr><tr></tr>
  6.     <tr style="font-family:Arial, Helvetica, sans-serif; color:#FFFFFF;"><td>INSERT MESSAGE HERE</td></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
  7.     <tr style="font-weight:bold; font-size:18px;  font-family:Arial, Helvetica, sans-serif; color:#FFFFFF;"><td>SENDER</td></tr>
  8.     </table>
  9.     </span>
  10. </div>
  11.  
All and any help is much appreciated and obliged.
Nov 22 '07 #1
1 1551
phvfl
173 Expert 100+
Hi,

Due to wanting to prevent people from changing the layout of the page webmail providers (GMail, Yahoo!, etc.) disable various amounts of CSS and styles. Some will remove any styles from within the head element of a HTML document and some will strip styles from the body.

A good article on this can be found at http://www.xavierfrenette.com/articl...rt-in-webmail/

Hope this helps
Nov 22 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Shannon Jacobs | last post by:
Trying to solve this with a regex approach rather than the programmatic approach of counting up and down the levels. I have a fairly complicated HTML page that I want to simplify. I've been able to...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
54
by: Howard Kaikow | last post by:
Where is the official documentation of what constitutes a minimally compliant HTML file? -- http://www.standards.com/; See Howard Kaikow's web site.
3
by: Jimmy Jazz | last post by:
Hi, I am trying to extract html content from a web page to print in a separate window. I think I need to use Page.Request..InputStream.BeginRead(), can anyone tell me if this is correct and show...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
0
by: Ken | last post by:
Hi. I've recently organized and even color-coded many of my favorite bookmarks on WEB DEVELOPMENT (and a few other favorite subjects too) into what I call QUICK LINK PAGES. These are very...
0
by: altami0762 | last post by:
jazz scale suggester system 3.0 crack http://cracks.12w.net F R E E
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.