SearchSearch   

Printer Freindly Version

 
   Webmaster Forums (Home) -> Macromedia Dreamweaver RSS
Next:  Record Count - move to - strange outcome  
Author Message
ForensicBop

External


Since: Mar 30, 2007
Posts: 44



(Msg. 1) Posted: Mon May 14, 2007 7:30 pm
Post subject: Printer Freindly Version
Archived from groups: macromedia>dreamweaver (more info?)

I am currently designing a site where each page needs a printer friendly
version. I thought about creating all the pages in a simple format using CSS
and then linking a button from the complex page to the simple page.

However, I have appeared on this forum before and have been encouraged to look
at this article (I don't expect you busy people to read it!)
http://alistapart.com/articles/goingtoprint

The article sets a CSS document for the printer friendly versions. However,
when I put a button into my non-printer friendly version (HTML) how do I make
it create a new document with the new CSS rules? Would I have to use a CSS
swapper?

Thanks in advance.
Back to top
Dan Galfano

External


Since: Nov 14, 2006
Posts: 35



(Msg. 2) Posted: Mon May 14, 2007 7:30 pm
Post subject: Re: Printer Freindly Version
Archived from groups: per prev. post (more info?)

when you select your style media (when you link or import your css file
in your <head>)...i.e.
<style type="text/css" media="screen"> this is selecting the style sheet
you style for viewing on screen.

You can also have a separate style sheet that has all of your print
friendly rules and then in the head you link to it, but instead of
media="screen", you have media="print". So when you try to print the
page, it uses the media="print" style sheet.

Not sure if I explained that well, but do you get it?

Dan


ForensicBop wrote:
> I am currently designing a site where each page needs a printer friendly
> version. I thought about creating all the pages in a simple format using CSS
> and then linking a button from the complex page to the simple page.
>
> However, I have appeared on this forum before and have been encouraged to look
> at this article (I don't expect you busy people to read it!)
> http://alistapart.com/articles/goingtoprint
>
> The article sets a CSS document for the printer friendly versions. However,
> when I put a button into my non-printer friendly version (HTML) how do I make
> it create a new document with the new CSS rules? Would I have to use a CSS
> swapper?
>
> Thanks in advance.
>
Back to top
ForensicBop

External


Since: Mar 30, 2007
Posts: 44



(Msg. 3) Posted: Mon May 14, 2007 7:58 pm
Post subject: Re: Printer Freindly Version
Archived from groups: per prev. post (more info?)

....please, anybody?
Back to top
ForensicBop

External


Since: Mar 30, 2007
Posts: 44



(Msg. 4) Posted: Mon May 14, 2007 8:35 pm
Post subject: Re: Printer Freindly Version
Archived from groups: per prev. post (more info?)

Get both of the previous two comments! Thanks a bunch guys! Smile
Back to top
Gerry

External


Since: Feb 04, 2007
Posts: 18



(Msg. 5) Posted: Mon May 14, 2007 9:13 pm
Post subject: Re: Printer Freindly Version
Archived from groups: per prev. post (more info?)

No - its all in the media

It does it automatically! Put it in with the right "media" type (I think DW
does it for you, in the last two versions)

Try print preview for an example of how it looks! No need for a printer
button, BUT it makes it easier, and then its just a straight Print
javascript bit!
HTH's

Gerry
http://www.FinanceExtra.net


"ForensicBop" <webforumsuser.DeleteThis@macromedia.com> wrote in message
news:f2adc1$ptr$1@forums.macromedia.com...
>I am currently designing a site where each page needs a printer friendly
> version. I thought about creating all the pages in a simple format using
> CSS
> and then linking a button from the complex page to the simple page.
>
> However, I have appeared on this forum before and have been encouraged to
> look
> at this article (I don't expect you busy people to read it!)
> http://alistapart.com/articles/goingtoprint
>
> The article sets a CSS document for the printer friendly versions.
> However,
> when I put a button into my non-printer friendly version (HTML) how do I
> make
> it create a new document with the new CSS rules? Would I have to use a CSS
> swapper?
>
> Thanks in advance.
>
Back to top
b a f

External


Since: Feb 03, 2009
Posts: 1



(Msg. 6) Posted: Tue Feb 03, 2009 1:05 pm
Post subject: Re: Printer Freindly Version
Archived from groups: per prev. post (more info?)

this discussion may have answered the question for ForensicBop, but it did not
for me.

I do NOT want the page to automatically use "print.css" when you send the web
pages to the printer (the reason why is a long story).

therefore, I would like to provide a "printer friendly" link instead. How do I
make it create a new document with the new CSS rules? Would I have to use a
CSS swapper?

thanks!
-b
Back to top
Murray *ACE*

External


Since: Jul 29, 2006
Posts: 13227



(Msg. 7) Posted: Tue Feb 03, 2009 1:05 pm
Post subject: Re: Printer Freindly Version
Archived from groups: per prev. post (more info?)

You could -

1. Have two pages (one print friendly, the other not)
2. Have a page with some server scripting that reads a URL parameter and
chooses the stylesheet accordingly. For example, with PHP, you could have -

<link href="<?php echo (isset($_GET['print-friendly']) &&
$_GET['print-friendly'])?'printfriendly.css':'regular.css'; ?>"....
3. Have some javascript that does the same type thing, client side.

I wouldn't like the first choice as a real option since you are doubling
your work for that page.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"b a f" <webforumsuser.DeleteThis@macromedia.com> wrote in message
news:gm9v7a$ath$1@forums.macromedia.com...
> this discussion may have answered the question for ForensicBop, but it did
> not
> for me.
>
> I do NOT want the page to automatically use "print.css" when you send the
> web
> pages to the printer (the reason why is a long story).
>
> therefore, I would like to provide a "printer friendly" link instead. How
> do I
> make it create a new document with the new CSS rules? Would I have to use
> a
> CSS swapper?
>
> thanks!
> -b
>
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> Macromedia Dreamweaver
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum