Hey everybody,
I'm using the Shopify Order Printer app to print 3"x4" labels for my product and I'm having a hard time generating an output that is full bleed. The app just allows you to use HTML templates to generate a print output so I think there's something wrong with my CSS code.
My issue is that I always seem to end up with a margin on the left side and bottom, no matter what I try. For now I've balanced the margins so the image looks centered on the label. But I need to get this to print edge-to-edge. So I'm hoping someone here has some expertise and is willing to help me to sort this out.
----
<style type="text/css">
img {max-width:100% !important; max-height:100% !important;}
.
.
.
</style>
<div id="page1-div" media="print" style="position:relative;">
-----
Sample PDF output attached.
Any ideas?
Thanks in advance!
I'm using the Shopify Order Printer app to print 3"x4" labels for my product and I'm having a hard time generating an output that is full bleed. The app just allows you to use HTML templates to generate a print output so I think there's something wrong with my CSS code.
My issue is that I always seem to end up with a margin on the left side and bottom, no matter what I try. For now I've balanced the margins so the image looks centered on the label. But I need to get this to print edge-to-edge. So I'm hoping someone here has some expertise and is willing to help me to sort this out.
- I'm using print media CSS to generate an output that is saved as a PDF.
- The label consists of a background image with text over top using containers.
- Printing of the background image is the issue. It's currently a 3"x4" @ 72 dpi png file.
- Margins in the HTML and print dialogue are set at 0.
----
<style type="text/css">
* { margin: 0; padding: 0; }
@media print { @page {size: 3in 4in;}}img {max-width:100% !important; max-height:100% !important;}
.
.
.
</style>
<div id="page1-div" media="print" style="position:relative;">
<img src="https://cdn.shopify.com/s/files/.../Test_Print.png?1011635451433234123" alt="background image"/>
</div>-----
Sample PDF output attached.
Any ideas?
Thanks in advance!
Dislike ads? Become a Fastlane member:
Subscribe today and surround yourself with winners and millionaire mentors, not those broke friends who only want to drink beer and play video games. :-)
Attachments
Access Restricted: Unlock 1,000,000+ Posts
Stop Peeking Through the Keyhole.
Open the Door.
You hit a wall because the best advice isn't free—it's earned. Since 2007, MJ DeMarco has been active here daily (99.9% active rate), building a war room for entrepreneurs who refuse to settle for mediocrity.
- Active Daily: Life-changing content posted dozens of times every day. No dead threads.
- MJ's Inner Circle: Direct access to the author of The Millionaire Fastlane.
- Vetted Network: Connect with founders scaling to 7 and 8 figures.
- Proven Roadmaps: Strategy over motivation. Execution over "hustle porn."
"SCALED TO 6-FIGURE MONTHS"
"Tips and advice here saved me from huge mistakes, others allowed me to scale my business to 6-figure months."— User MitchC
"INSANE QUALITY OF PEOPLE"
"The number of high quality people I've met from this forum has been insane. All of it predicated on building real value."— User Richard Peck
"You are the average of the five people you surround yourself with."
Are you surrounding yourself with success?
