473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 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 1560
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.