the default for body is to have margins (implied). you may have to set them to 
0 (or even negative?):

body, p { margin: 0px; padding: 0px; }

while the 'px' is not required on the '0' I use it for consistency. (allows me 
to debug or change the values more easily).

I don't know if a negative value (margin-left: -50px for example) would allow 
the printing to start to the correct position. you'll have to test on your 
printer. and only the p probably needs it.

-- sent from my iPhone4 --
Beverly Voth
--

On Oct 8, 2011, at 11:54 PM, "Fogelson, Steve" <stevefogel...@askics.net> wrote:

> None except
>
> <style media="print">
> <!-- p.page { page-break-before: always }
> //--></style>
> </head>
> <body onload="window.print();">
>
>
> From: Beverly Voth [mailto:beverlyv...@gmail.com]
> Sent: Saturday, October 08, 2011 10:50 PM
> To: Witango-Talk@witango.com
> Subject: Re: Witango-Talk: Receipt Printer
>
> steve, what CSS are you using in the HTML?
>
> -- sent from my iPhone4 --
> Beverly Voth
> --
>
> On Oct 8, 2011, at 10:53 PM, "Fogelson, Steve" <stevefogel...@askics.net> 
> wrote:
>
>> I am trying to print receipts to a Bixolon SRP-350II receipt printer. The 
>> paper is about 3 ½ inches wide. I displayed a html page 350 pixels wide with 
>> a Witango taf and printed to the printer but the left hand margin was 
>> defaulted to about 1 inch wide, so part of the display does not print. I 
>> don’t want to have to have the user go into “Print Preview” and adjust the 
>> margins so the entire width of the doc will print.
>>
>> I did some research on JavaScript to see if I could set margins that way. No 
>> joy!
>>
>> Any ideas?
>>
>> Thanks
>>
>> Steve Fogelson
>>
>> To unsubscribe from this list, please send an email to lists...@witango.com 
>> with "unsubscribe witango-talk" in the body.
>
> To unsubscribe from this list, please send an email to lists...@witango.com 
> with "unsubscribe witango-talk" in the body.
> To unsubscribe from this list, please send an email to lists...@witango.com 
> with "unsubscribe witango-talk" in the body.


----------------------------------------

To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.

Reply via email to