CSS Media Print

Discussion in 'HTML & Website Design' started by afridy, May 5, 2012.

  1. #1
    Hai folks,

    Why @media print has no effect in my document?

    <style type="text/css" media="print">
    @page { size:8.5in 11in !important; margin: 1cm !important}
    </style>
    Code (markup):
    if i change the values of size or margin no effect in printing. for example if i changed margin: 5cm, in print preview no changes is shown to margin.

    * the above code resides in the script header section. no external style sheets being attached.

    :(
     
    afridy, May 5, 2012 IP