Solved

Displaying a HTML Email inside a <DIV> without changing the CSS of the website

Posted on 2008-10-11
5
402 Views
Last Modified: 2012-05-05
I'm developing a pop reader. My question is how to display HTML emails with CSS inside a <DIV> without it interfering with the CSS of the rest of the page?
0
Comment
Question by:Xyptilon2
  • 3
  • 2
5 Comments
 
LVL 39

Expert Comment

by:Roger Baklund
ID: 22693558
You can't. Write the email to a static (temporary) html file, and use iframe to display it.
0
 
LVL 39

Expert Comment

by:Roger Baklund
ID: 22693564
... you don't have to use a html file, the iframe could also be dynamic.
0
 
LVL 13

Author Comment

by:Xyptilon2
ID: 22693623
Yes, IFrames could be a good option, though im just wondering how for example Mailbee does it from Afterlogic.com, they don't seem to use an iframe for their viewer. Any ideas? Are there any disadvantages to using an IFrame?
0
 
LVL 39

Accepted Solution

by:
Roger Baklund earned 500 total points
ID: 22693721
I don't know how Mailbee does it.

Some very old browsers (like Netscape 4) and text based browsers (like lynx) does not support iframes. A common "fix" for this is to include the source URL of the iframe as a link within the iframe, for a gracefull fallback for such browsers:

<iframe height="400" width="600" src="MyIFrame.html">
<a href="MyIFrame.html">View content</a>
</iframe>

The a href is not displayed in browsers supporting iframe.
0
 
LVL 13

Author Closing Comment

by:Xyptilon2
ID: 31505290
I decided to use the Iframe method, thanks.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Overflow: auto does not stretch with position: absolute 3 26
Link not working 6 41
What cart is this? 2 31
Validating number not work with decimal 4 23
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question