3

I am trying to ignore the website title in print mode, follwing how to hide element in print mode, I have tried:

<title class="hidden-print">site title..</title>

And CSS:

   @media print{
        .hidden-print {
            display: none !important;
        }
   }

But still the title is visable in print mode.

BTW - can I hide the date next to the title in print mode?

Community
  • 1
  • 1
Itsik Mauyhas
  • 3,824
  • 14
  • 69
  • 114

2 Answers2

3

Please use this and then set margins according to your needs. This will remove the headers and backgrounds from the printer settings.

<style type="text/css" media="print">
    @page 
    {
        size:  auto;
        margin: 0mm;
    }
</style>
xxCodexx
  • 438
  • 1
  • 3
  • 15
2

BTW - can I hide the date next to the title in print mode?

Are you talking about the footer/header elements : title and date when you print a webpage? It depends of your browser

Removing page title and date when printing web page (with CSS?)

Community
  • 1
  • 1
Anaïs
  • 39
  • 5