Question

I have a page with two media types, Print and screen. I also want to allow user to email the page to themselves but instead of the screen media type, I want to allow them to email the Print media type which would include some text that is hidden in the screen media type.

I was able to email the page DOM of the screen media type by using document.body.getElementsByClassName('content')[0].innerHTML }.How can I do the same thing but with print media type?

Was it helpful?

Solution

Media types are defined in the stylesheets, not the html.

Emails do not support all CSS styling, or media types. Emails are not web pages. Much of how your email will be rendered will depend on the mail client (gmail, yahoo etc.)

See: Campaign Monitor CSS Guide.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top