Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eran 292 posts 436 karma points
    May 24, 2011 @ 01:02
    Eran
    0

    client dependency and print style sheet

    untill i used client dependency, i use to have 2 versions of css:

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

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

    how can i do that when using client dependency loader control?

    Thanks.

     

     

  • Justin Moore 41 posts 100 karma points
    Jun 30, 2011 @ 02:46
    Justin Moore
    0

    you can't do media="print" with Client Dependency....yet

    so just put your normal link in for the print css

    just asked Shazwazza

  • Gregg Duncan 48 posts 70 karma points
    Jun 30, 2011 @ 17:51
    Gregg Duncan
    0

    You can wrap the css inside your print stylesheet in the @media print directive. Then you don't need the media="print" on the link tag.

    Like this:

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

    Then  in your print.css style sheet wrap all the styles in the @media print directive:

    @media print{
    body { font-size: 67%; }
    .no-print { dispay: none; }
    }

    ClientDependency will then minify and load it with all the other stylesheets and the print styles are still correctly applied.

    I hope this helps.



Please Sign in or register to post replies

Write your reply to:

Draft