Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set margins 0 on print preview?

Tags:

Where am i doing wrong?

This is the normal print preview: this is the first picture

But I want to see this picture (without dragging margin arrows) alt text

This is the css codes and preview:

alt text

like image 568
uzay95 Avatar asked Jun 04 '09 19:06

uzay95


1 Answers

Yes. It is possible to alter your margins in a page printout. The rule would look like:

@page {     margin: 0; } 

This will not work in Firefox as of now. If you check their developer reference on the @page CSS support, you can see what browsers do support @page.

like image 126
Chris B. Avatar answered Oct 22 '22 12:10

Chris B.