HighDots Forums  

Copy and paste a page using an external CSS page

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Copy and paste a page using an external CSS page in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
donpro
 
Posts: n/a

Default Copy and paste a page using an external CSS page - 12-01-2008 , 04:11 PM






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

Reply With Quote
  #2  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Copy and paste a page using an external CSS page - 12-01-2008 , 04:20 PM






donpro wrote:
Quote:
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?
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.


Reply With Quote
  #3  
Old   
donpro
 
Posts: n/a

Default Re: Copy and paste a page using an external CSS page - 12-02-2008 , 11:09 AM



On Dec 1, 4:20*pm, Harlan Messinger
<hmessinger.removet... (AT) comcast (DOT) net> wrote:
Quote:
donpro wrote:
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?

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.
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?


Reply With Quote
  #4  
Old   
David Stone
 
Posts: n/a

Default Re: Copy and paste a page using an external CSS page - 12-02-2008 , 11:48 AM



In article
<23ab6fc7-645b-4a4e-b2c3-2ea8ca49cc1a (AT) d23g2000yqc (DOT) googlegroups.com>,
donpro <donpro-2003 (AT) rogers (DOT) com> wrote:

Quote:
On Dec 1, 4:20*pm, Harlan Messinger
hmessinger.removet... (AT) comcast (DOT) net> wrote:
donpro wrote:
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?

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.

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?
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)


Reply With Quote
  #5  
Old   
donpro
 
Posts: n/a

Default Re: Copy and paste a page using an external CSS page - 12-02-2008 , 01:10 PM



On Dec 2, 11:48*am, David Stone <no.em... (AT) domain (DOT) invalid> wrote:
Quote:
In article
23ab6fc7-645b-4a4e-b2c3-2ea8ca49c... (AT) d23g2000yqc (DOT) googlegroups.com>,



*donpro <donpro-2... (AT) rogers (DOT) com> wrote:
On Dec 1, 4:20*pm, Harlan Messinger
hmessinger.removet... (AT) comcast (DOT) net> wrote:
donpro wrote:
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?

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.

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?

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)
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


Reply With Quote
  #6  
Old   
David Stone
 
Posts: n/a

Default Re: Copy and paste a page using an external CSS page - 12-02-2008 , 01:51 PM



In article
<edcdac43-123f-4a3f-8dfe-8a45a609d50e (AT) y18g2000yqn (DOT) googlegroups.com>,
donpro <donpro-2003 (AT) rogers (DOT) com> wrote:
Quote:
On Dec 2, 11:48*am, David Stone <no.em... (AT) domain (DOT) invalid> wrote:
In article
23ab6fc7-645b-4a4e-b2c3-2ea8ca49c... (AT) d23g2000yqc (DOT) googlegroups.com>,
*donpro <donpro-2... (AT) rogers (DOT) com> wrote:
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)

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.
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?


Reply With Quote
  #7  
Old   
dorayme
 
Posts: n/a

Default Re: Copy and paste a page using an external CSS page - 12-02-2008 , 03:23 PM



In article
<8951db70-55ea-45a5-91e9-d0793a1b8dc9 (AT) v4g2000yqa (DOT) googlegroups.com>,
donpro <donpro-2003 (AT) rogers (DOT) com> wrote:

Quote:
... 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
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.

--
dorayme


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.