skip to Main Content

I tried printing with chrome but i got some issue. Google chrome print not reading the flex property of my css also the bold property is not being read.

any solution or alternative code to make this work or any pdf print library that i can implement my page

2

Answers


  1. Chosen as BEST ANSWER

    I fix this by making the css in the same page with my html!


  2. You might need to define some special print styles as a browser will override certain styles when printing.

    Within a CSS document you can do:

    @media print {
      /* All your print styles go here */
    }
    

    Or just link to a separate print stylesheet

    <link href="/path/to/print.css" media="print" rel="stylesheet" />
    

    Read more about it here: https://developer.mozilla.org/en-US/docs/Web/Guide/Printing

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search