Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

print-css

How to make HTML pages print at a consistent size from Chrome?

September 12, 2023 by Tarik

I found a solution. The key is to ensure that in each document, the “logical page” that Chrome splits elements into for printing is the same size. E.g. if one document has lots of 200x200px squares and Chrome decides to group them in a rectangle 5×4 to print landscape, then you need to make sure … Read more

Categories html Tags css, google-chrome, html, print-css, printing Leave a comment

How do I Make Firefox Print a Background-Color Style?

September 4, 2023 by Tarik

Its a browser setting. There is nothing you can do in your CSS. In Windows – File > Page Setup… > Print Background.

Categories css Tags css, firefox, print-css, printing Leave a comment

How to see the print media CSS in Firebug?

February 26, 2023 by Tarik

What about Web Developer Toolbar? https://addons.mozilla.org/en-US/firefox/addon/60 when installed go to CSS -> Display CSS by media type -> Print

Categories css Tags css, firebug, print-css, printing Leave a comment

Need to remove href values when printing in Chrome

September 29, 2022 by Tarik

Bootstrap does the same thing (… as the selected answer below). @media print { a[href]:after { content: ” (” attr(href) “)”; } } Just remove it from there, or override it in your own print stylesheet: @media print { a[href]:after { content: none !important; } }

Categories css Tags css, hyperlink, print-css, printing Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa