locked
Hide Url & Date Print RRS feed

  • Question

  • User-797751191 posted

    Hi

      I have below code and want to Hide Url & Date Print

    <button class="no-print" onclick="window.print();" style="width: 5%; margin-top: 10px; margin-left: 49%;">Print</button>

    @media print 
                {
                    .no-print {
                        display: none;
                    }
    
                    .left-side,
                    .header,
                    .content-header {
                        display: none;
                    }
    
                    .right-side {
                        margin: 0;
                    }
                }

    Thanks

    Sunday, June 30, 2019 2:48 AM

Answers

  • User71929859 posted

    Add the below within your media queries

    @page { 
      size: auto;  
      margin: 0mm; 
    }

    This might not work in legacy browsers though.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 1, 2019 3:57 AM