Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-10-11
5
Medium Priority
?
408 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
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 …

972 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