Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / December 2008



Tip: Looking for answers? Try searching our database.

Copy and paste a page using an external CSS page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
donpro - 01 Dec 2008 21:11 GMT
Hi,

Maybe this is normal but when I copy and paste a web page into an
email where the web page uses either old style <table) deprecated code
or inline CSS code, it shows fine.

However, when I copy and paste a web page into an email where the web
page uses external CSS pages, the formatting is not displayed.

Is this normal and if so, is there a work-around?

Thank,
Don
Harlan Messinger - 01 Dec 2008 21:20 GMT
> Hi,
>
[quoted text clipped - 6 lines]
>
> Is this normal and if so, is there a work-around?

It's normal if the LINK tag referencing the external CSS sheet uses a
relative URL, because nothing can be relative to an e-mail--unless you
add a BASE tag to the e-mail's HTML source that specifies the address
relative to which the address should be interpreted.
donpro - 02 Dec 2008 16:09 GMT
On Dec 1, 4:20 pm, Harlan Messinger
<hmessinger.removet...@comcast.net> wrote:
> > Hi,
>
[quoted text clipped - 11 lines]
> add a BASE tag to the e-mail's HTML source that specifies the address
> relative to which the address should be interpreted.

Thanks.  I tried using the absolute URL for all CSS and JS included
files (not images) and still no luck.  I'm guessing that code between
<head></head> is not copied to the email hence the formatting is lost.

Can CSS includes be moved after the <body> tag or does this break the
validation rules?
David Stone - 02 Dec 2008 16:48 GMT
In article
<23ab6fc7-645b-4a4e-b2c3-2ea8ca49cc1a@d23g2000yqc.googlegroups.com>,

> On Dec 1, 4:20 pm, Harlan Messinger
> <hmessinger.removet...@comcast.net> wrote:
[quoted text clipped - 20 lines]
> Can CSS includes be moved after the <body> tag or does this break the
> validation rules?

Why not just take the easier route, and send an e-mail containing a
short explanatory note and a link to the web page instead? That way,
you avoid the issue of styles altogether, and you also avoid wasted
effort when sending to folks like me who have html rendering disabled
in their mail client!

(There is another way to style html e-mails, but that involves
setting style="..." on the relevant html bits in the body. Still
wouldn't work in my mail client, though)
donpro - 02 Dec 2008 18:10 GMT
> In article
> <23ab6fc7-645b-4a4e-b2c3-2ea8ca49c...@d23g2000yqc.googlegroups.com>,
[quoted text clipped - 33 lines]
> setting style="..." on the relevant html bits in the body. Still
> wouldn't work in my mail client, though)

A link wouldn't work as the information I am copying and pasting is
dynamic content hence the result of choices made earlier on previous
pages.  The information would also be sent only to selected
individuals ad so rendering HTML in their HTML client would be a
necessity.  I guess I began this thread as when copying a web page
designed without CSS, all worked more or less OK.

Thanks,
Don
David Stone - 02 Dec 2008 18:51 GMT
In article
<edcdac43-123f-4a3f-8dfe-8a45a609d50e@y18g2000yqn.googlegroups.com>,
> > In article
> > <23ab6fc7-645b-4a4e-b2c3-2ea8ca49c...@d23g2000yqc.googlegroups.com>,
[quoted text clipped - 17 lines]
> necessity.  I guess I began this thread as when copying a web page
> designed without CSS, all worked more or less OK.

So then you appear to be stuck with using things like

  <div style="...">blah</div>

Either that, or generating a pdf from the dynamically
generated page and sending that instead. Details would vary
depending on your platform, OS, and what you are using to
generate the dynamic content. Also, a little outside my
area of expertise (other than selecting "Save as pdf" in
the print options under Mac OS X!) but there ought to be
html-to-pdf utilities for most common platforms?
dorayme - 02 Dec 2008 20:23 GMT
In article
<8951db70-55ea-45a5-91e9-d0793a1b8dc9@v4g2000yqa.googlegroups.com>,

> ... when I copy and paste a web page into an
> email where the web page uses either old style <table) deprecated code
[quoted text clipped - 4 lines]
>
> Is this normal

I don't know if it is normal but I can copy and paste a web page content
with pictures from a web browser into my email program Mail.app (on a
Mac) and it is pretty fine. And, yes, one whose HTML has a link for a
style sheet. Here is one to try (so we are all on the same page):

<http://css.maxdesign.com.au/selectutorial/selectors_type.htm>

There is now and then a need for a push or shove with a context menu
command... but this is is easy and minor.

Signature

dorayme

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.