Results 1 to 3 of 3

Thread: How to define the media="print" for an imported CSS file?

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    1

    Default How to define the media="print" for an imported CSS file?

    Hi

    I am working on builidng a printer-friendly page (and appreciate all the good advise on this forum on that!). So I included DIV sections on all the layout elements that I would like to manage.

    However I still have one problem: How and where can I define the media="print" in the LINK element for my imported print stylesheet, i.e.

    <link rel="stylesheet" type="text/css" href="print.css" media="print">

    When I preview or publish the pages the LINK element will be generated by NOF. If there is no way of including the media="print" part somewhere in the style sections, I would have to add this in each generated html file manually. Which would be a pain...

    Can somebody help? Thank you.

    KR, Richard

  2. #2
    Senior Member gotFusion's Avatar
    Join Date
    Jan 2010
    Location
    www.gotHosting.biz
    Posts
    4,529

    Default

    Quote Originally Posted by rifa View Post
    Hi

    I am working on builidng a printer-friendly page (and appreciate all the good advise on this forum on that!). So I included DIV sections on all the layout elements that I would like to manage.

    However I still have one problem: How and where can I define the media="print" in the LINK element for my imported print stylesheet, i.e.

    <link rel="stylesheet" type="text/css" href="print.css" media="print">

    When I preview or publish the pages the LINK element will be generated by NOF. If there is no way of including the media="print" part somewhere in the style sections, I would have to add this in each generated html file manually. Which would be a pain...

    Can somebody help? Thank you.

    KR, Richard
    The quick answer would be to insert the style sheet call using the masterborder html insert option. This will give you info on where this is located. This tutorial is geared to page specific script insertions... You will want to press F10 for the masterborder palette instead of F9 as explained in the tutorial, You should be able to use the info to get your line of code inserted, if not post back: http://www.gotfusion.com/tutorials/tut.cfm?itemID=4068
    NetObjects Fusion Cloud Linux enabled Web Hosting, support + training starts at $14.95
    NetObjects Fusion web Hosting and support + ASP + PHP + ColdFusion + MySQL + MS SQL
    FREE NetObjects Fusion Support & training comes with all web hosting accounts
    NetObjects Fusion Web Hosting: http://www.gotHosting.biz

  3. #3
    JWebStuff
    Guest

    Default Re: How to define the media="print" for an imported CSS file?

    Richard - would love to know the details of how you are accomplishing this.
    I had been using a php script that was working beautifully up until the last
    time my host upgraded PHP on my server. The script died and I haven't been
    able to get it to work since.
    Thanks,
    Janice

    "rifa" <rifa.501nzv@no-mx.forums.netobjects.com> wrote in message
    news:rifa.501nzv@no-mx.forums.netobjects.com...
    >
    > Hi
    >
    > I am working on builidng a printer-friendly page (and appreciate all
    > the good advise on this forum on that!). So I included DIV sections on
    > all the layout elements that I would like to manage.
    >
    > However I still have one problem: How and where can I define the
    > media="print" in the LINK element for my imported print stylesheet,
    > i.e.
    >
    > <link rel="stylesheet" type="text/css" href="print.css"
    > *media="print"*>
    >
    > When I preview or publish the pages the LINK element will be generated
    > by NOF. If there is no way of including the media="print" part somewhere
    > in the style sections, I would have to add this in each generated html
    > file manually. Which would be a pain...
    >
    > Can somebody help? Thank you.
    >
    > KR, Richard
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •