Solved

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

Posted on 2008-10-11
5
399 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now