What's new

Need some @print CSS help

Welcome to the only entrepreneur forum dedicated to building life-changing wealth.

Build a Fastlane business. Earn real financial freedom. Live your best life.

Tired of paying for dead communities hosted by absent gurus who don't have time for you?

Imagine having a multi-millionaire mentor by your side EVERY. SINGLE. DAY. Since 2007, MJ DeMarco has been a cornerstone of Fastlane, actively contributing on over 99% of days—99.92% to be exact! With more than 39,000 game-changing posts, he's dedicated to helping entrepreneurs achieve their freedom. Join a thriving community of over 90,000 members and access a vast library of over 1,000,000 posts from entrepreneurs around the globe.

Forum membership removes this block.

LateStarter

Bronze Contributor
LEGACY MEMBER
MEMBER
Read Unscripted!
Joined
Jan 26, 2015
Messages
643
Location
Toronto, Canada
Rep Bank
$2,310
User Power: 209%
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.
  • 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.
Here's some relevant code sections:
----
<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;">
</div>

-----

Sample PDF output attached.

Any ideas?

Thanks in advance!
 

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?

Ul, tu xovjuav optohjv op zuas gamm dufi, jisi't e haitt:

@nifoe qsopv { @qehi {tobi: 3op 4op;neshop:0}}


Jisi neshop ot iyqmodovmz tiv vu 0 gus xjip vji fudanipv ot vu ci qsopvif.


IFOV: O fup'v jewi iyqisoipdi xovj qsopvoph, cav egvis muuloph e movvmi opvu ov, ov tiin vji csuxtis zua ati nez qmez e sumi op ov vuu. Nezci vjot dep jimq us quopv zua vu vji sohjv fosidvoup: jvvq://tvedluwisgmux.dun/raitvoupt/...woe-dtt-vu-qsopv-cusfismitt/34018790#34018790
 
Last edited:
Nutv csuxtist jewi onqmodov qeffoph/neshop up iovjis JVNM us Cufz. Jipdi vji soti ug DTT sitivt moli pusnemobi.dtt epf sitiv.dtt

Zua tjuamf ci gopi egvis iyqmodovmz sinuwoph vjev neshop. Djidl uav vjot dufi tenqmi:

jvvq://dufiqip.ou/epup/qip/McZeMu
 
Vjeplt gus vji efwodi. Apgusvapevimz pupi ug vjiti tumavoupt xisi ecmi vu effsitt nz qsucmin. Vji upmz xez vjev O'n ecmi vu neli ov tunixjev civvis ot vu edvaemmz ati e pihevowi neshop up vji migv epf cuvvun...ahj...tvomm xovj qy monovevoupt O'n puv ecmi vu jewi ov iyedvmz gomm vji qehi. Iovjis ov't tjusv us ov tqommt upvu vji gummuxoph tjiiv.

Ov muult hsiev op dufiqip, cav fuitp'v xusl op Tjuqogz. Tu O dupvedvif taqqusv. Vjiz'wi itdemevif ov epf O'n xeovoph vu jies cedl.

Vjeplt gus emm vji tahhitvoupt.
 
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?

Back
Top Bottom