Hmmm... 

You're using the same width for screen and print there... I think you need something 
like this...

<style>
@media print
 {
 body { width : 500px ; }
    }
</style>

don't specify a screen style, and it shouldn't affect the way your page is displayed 
in the browser.  

Remember that the style settings can be overridden in the document, and this could 
cause problems with the width specified here.  If that's the case, that's when you 
might use a second entry to set screen-specific styles so they don't interfere with 
printing...

e.g.
<style>
@media print
 {
 body { width : 500px ; }
    }
@media screen
 {
 body { width : 800px ; }
    }
</style>


  ----- Original Message ----- 
  From: Ian Westbrook (ASE) 
  To: [EMAIL PROTECTED] 
  Sent: Monday, November 10, 2003 1:47 PM
  Subject: Re: [ cf-dev ] printing text from a web page...


  actually that doesn't work - I was looking at the wrong print-out!

  I'm trying this:

  <style>
  @media print, screen
   {
   body { width : 500px ; }
      }
  </style>


  and it's making no diffeence.

  any ideas?

  Ian W



  ----- Original Message -----
  From: "Robin Griffiths" <[EMAIL PROTECTED]>
  To: <[EMAIL PROTECTED]>
  Sent: Monday, November 10, 2003 1:26 PM
  Subject: Re: [ cf-dev ] printing text from a web page...


  If you're using CSS2, you can specify a different 'page size' for print
  rather than screen.  Use @media - details here:

  http://www.blooberry.com/indexdot/css/syntax/atrules/media.htm
    ----- Original Message -----
    From: Ian Westbrook (FDM)
    To: CFUG List
    Sent: Monday, November 10, 2003 1:04 PM
    Subject: [ cf-dev ] printing text from a web page...


    this might be slightly OT, and I'm sure I used to know the answer, but
  anyway:

    when I print out text from a page of my site the last few words/characters
  get cut off. How can I stop this?

    TIA for what must seem a clueless newbie question ;-)

    Ian W





  -- 
  ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  For human help, e-mail: [EMAIL PROTECTED]

Reply via email to