Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

CSS @print

  • 02-04-2014 12:56PM
    #1
    Registered Users, Registered Users 2 Posts: 1,477 ✭✭✭


    Having trouble with CSS (on account of me knowing little about it!) and printing to receipt printers. I have a very small amount of text (3 lines, no styling) to print to a receipt. Chrome prints it fine but IE and Firefox stream a full A4 page out. I am using a print css file with the css below. Can anyone suggest a way to make these browsers only print the 3 lines and then cut, instead of paging loads of blank recript paper?
    @media print
     {
      @page
      {
       margin-bottom: .5em;
       margin-left: .5em;
       margin-right: .6em;
       margin-top: .5em;
       width: 8.5;
       height: 11;
       size: 8.5in 11in;
      }
     }
    


Comments

  • Registered Users, Registered Users 2 Posts: 7,208 ✭✭✭Talisman


    Have you tried reducing the values of the width, height and size properties?

    8.5 x 11 inches is US Letter dimensions.


Advertisement