Different results on different printers when printing CSS cm sizes
up vote
1
down vote
favorite
I am trying to print a box from a web page where the size is defined in cm - when I print to different printers I seem to get different results.
For example, I just printed an example on my home printer where I set it to print at 10cm wide and it printed at 10.5cm but on my work printer it prints at 8.5cm wide. All other settings are the same - same laptop, same browser (Safari on Mac) etc
A customer has tried the same thing this time on a PC running Firefox and Chrome and he also gets a smaller size than intended - in his case he wants the output to be 8.5cm x 5.5cm but it prints much smaller (top is Firefox, bottom is Chrome):
I don't have the exact sizes and apologies the image is so small (this is what we were sent) but it is clearly not printing to the card size.
The box I am trying to print is set using:
#id-card
width: 10cm;
height: 6cm;
padding: 0;
margin: 0;
border: 1px solid black;
The border is added only so I can accurately measure the printed size - I realise it may cause a slight variance in the width but not to the extremes I am seeing.
Is there anything else which can influence the actual printed size?
css printing
add a comment |
up vote
1
down vote
favorite
I am trying to print a box from a web page where the size is defined in cm - when I print to different printers I seem to get different results.
For example, I just printed an example on my home printer where I set it to print at 10cm wide and it printed at 10.5cm but on my work printer it prints at 8.5cm wide. All other settings are the same - same laptop, same browser (Safari on Mac) etc
A customer has tried the same thing this time on a PC running Firefox and Chrome and he also gets a smaller size than intended - in his case he wants the output to be 8.5cm x 5.5cm but it prints much smaller (top is Firefox, bottom is Chrome):
I don't have the exact sizes and apologies the image is so small (this is what we were sent) but it is clearly not printing to the card size.
The box I am trying to print is set using:
#id-card
width: 10cm;
height: 6cm;
padding: 0;
margin: 0;
border: 1px solid black;
The border is added only so I can accurately measure the printed size - I realise it may cause a slight variance in the width but not to the extremes I am seeing.
Is there anything else which can influence the actual printed size?
css printing
Are you also taking into consideration the things outside of the #id-card, like the @page layout and html & body?
– rawnewdlz
Nov 9 at 22:21
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to print a box from a web page where the size is defined in cm - when I print to different printers I seem to get different results.
For example, I just printed an example on my home printer where I set it to print at 10cm wide and it printed at 10.5cm but on my work printer it prints at 8.5cm wide. All other settings are the same - same laptop, same browser (Safari on Mac) etc
A customer has tried the same thing this time on a PC running Firefox and Chrome and he also gets a smaller size than intended - in his case he wants the output to be 8.5cm x 5.5cm but it prints much smaller (top is Firefox, bottom is Chrome):
I don't have the exact sizes and apologies the image is so small (this is what we were sent) but it is clearly not printing to the card size.
The box I am trying to print is set using:
#id-card
width: 10cm;
height: 6cm;
padding: 0;
margin: 0;
border: 1px solid black;
The border is added only so I can accurately measure the printed size - I realise it may cause a slight variance in the width but not to the extremes I am seeing.
Is there anything else which can influence the actual printed size?
css printing
I am trying to print a box from a web page where the size is defined in cm - when I print to different printers I seem to get different results.
For example, I just printed an example on my home printer where I set it to print at 10cm wide and it printed at 10.5cm but on my work printer it prints at 8.5cm wide. All other settings are the same - same laptop, same browser (Safari on Mac) etc
A customer has tried the same thing this time on a PC running Firefox and Chrome and he also gets a smaller size than intended - in his case he wants the output to be 8.5cm x 5.5cm but it prints much smaller (top is Firefox, bottom is Chrome):
I don't have the exact sizes and apologies the image is so small (this is what we were sent) but it is clearly not printing to the card size.
The box I am trying to print is set using:
#id-card
width: 10cm;
height: 6cm;
padding: 0;
margin: 0;
border: 1px solid black;
The border is added only so I can accurately measure the printed size - I realise it may cause a slight variance in the width but not to the extremes I am seeing.
Is there anything else which can influence the actual printed size?
css printing
css printing
asked Nov 9 at 20:44
bhttoan
98931953
98931953
Are you also taking into consideration the things outside of the #id-card, like the @page layout and html & body?
– rawnewdlz
Nov 9 at 22:21
add a comment |
Are you also taking into consideration the things outside of the #id-card, like the @page layout and html & body?
– rawnewdlz
Nov 9 at 22:21
Are you also taking into consideration the things outside of the #id-card, like the @page layout and html & body?
– rawnewdlz
Nov 9 at 22:21
Are you also taking into consideration the things outside of the #id-card, like the @page layout and html & body?
– rawnewdlz
Nov 9 at 22:21
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Try setting the html and body to the expected print dimensions of the card. You did not share your HTML, so this is just an idea of how to control it.
@media print
@page
size: 10cm 6cm;
margin: 0;
padding: 0;
html, body
width: 100mm;
height: 60mm;
#id-card
width: 10cm;
height: 6cm;
padding: 0;
margin: 0;
border: 1px solid black;
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Try setting the html and body to the expected print dimensions of the card. You did not share your HTML, so this is just an idea of how to control it.
@media print
@page
size: 10cm 6cm;
margin: 0;
padding: 0;
html, body
width: 100mm;
height: 60mm;
#id-card
width: 10cm;
height: 6cm;
padding: 0;
margin: 0;
border: 1px solid black;
add a comment |
up vote
0
down vote
Try setting the html and body to the expected print dimensions of the card. You did not share your HTML, so this is just an idea of how to control it.
@media print
@page
size: 10cm 6cm;
margin: 0;
padding: 0;
html, body
width: 100mm;
height: 60mm;
#id-card
width: 10cm;
height: 6cm;
padding: 0;
margin: 0;
border: 1px solid black;
add a comment |
up vote
0
down vote
up vote
0
down vote
Try setting the html and body to the expected print dimensions of the card. You did not share your HTML, so this is just an idea of how to control it.
@media print
@page
size: 10cm 6cm;
margin: 0;
padding: 0;
html, body
width: 100mm;
height: 60mm;
#id-card
width: 10cm;
height: 6cm;
padding: 0;
margin: 0;
border: 1px solid black;
Try setting the html and body to the expected print dimensions of the card. You did not share your HTML, so this is just an idea of how to control it.
@media print
@page
size: 10cm 6cm;
margin: 0;
padding: 0;
html, body
width: 100mm;
height: 60mm;
#id-card
width: 10cm;
height: 6cm;
padding: 0;
margin: 0;
border: 1px solid black;
answered Nov 9 at 22:32
rawnewdlz
544516
544516
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233025%2fdifferent-results-on-different-printers-when-printing-css-cm-sizes%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you also taking into consideration the things outside of the #id-card, like the @page layout and html & body?
– rawnewdlz
Nov 9 at 22:21