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 38,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 and all non-sponsor ads.

LateStarter

Gold Contributor
FASTLANE INSIDER
LEGACY MEMBER
Read Unscripted!
Joined
Jan 26, 2015
Messages
636
Location
Toronto, Canada
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

Membership Required: Upgrade to Expose Nearly 1,000,000 Posts

Ready to Unleash the Millionaire Entrepreneur in You?

Become a member of the Fastlane Forum, the private community founded by best-selling author and multi-millionaire entrepreneur MJ DeMarco. Since 2007, MJ DeMarco has poured his heart and soul into the Fastlane Forum, helping entrepreneurs reclaim their time, win their financial freedom, and live their best life.

With more than 39,000 posts packed with insights, strategies, and advice, you’re not just a member—you’re stepping into MJ’s inner-circle, a place where you’ll never be left alone.

Become a member and gain immediate access to...

  • Active Community: Ever join a community only to find it DEAD? Not at Fastlane! As you can see from our home page, life-changing content is posted dozens of times daily.
  • Exclusive Insights: Direct access to MJ DeMarco’s daily contributions and wisdom.
  • Powerful Networking Opportunities: Connect with a diverse group of successful entrepreneurs who can offer mentorship, collaboration, and opportunities.
  • Proven Strategies: Learn from the best in the business, with actionable advice and strategies that can accelerate your success.

"You are the average of the five people you surround yourself with the most..."

Who are you surrounding yourself with? Surround yourself with millionaire success. Join Fastlane today!

Join Today
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.
 
Membership Required: Upgrade to Expose Nearly 1,000,000 Posts

Ready to Unleash the Millionaire Entrepreneur in You?

Become a member of the Fastlane Forum, the private community founded by best-selling author and multi-millionaire entrepreneur MJ DeMarco. Since 2007, MJ DeMarco has poured his heart and soul into the Fastlane Forum, helping entrepreneurs reclaim their time, win their financial freedom, and live their best life.

With more than 39,000 posts packed with insights, strategies, and advice, you’re not just a member—you’re stepping into MJ’s inner-circle, a place where you’ll never be left alone.

Become a member and gain immediate access to...

  • Active Community: Ever join a community only to find it DEAD? Not at Fastlane! As you can see from our home page, life-changing content is posted dozens of times daily.
  • Exclusive Insights: Direct access to MJ DeMarco’s daily contributions and wisdom.
  • Powerful Networking Opportunities: Connect with a diverse group of successful entrepreneurs who can offer mentorship, collaboration, and opportunities.
  • Proven Strategies: Learn from the best in the business, with actionable advice and strategies that can accelerate your success.

"You are the average of the five people you surround yourself with the most..."

Who are you surrounding yourself with? Surround yourself with millionaire success. Join Fastlane today!

Join Today

Welcome to an Entrepreneurial Revolution

The Fastlane Forum empowers you to break free from conventional thinking to achieve financial freedom through UNSCRIPTED® Entrepreneurship where relative value and problem-solving are executed at scale. Living Unscripted® isn’t just a business strategy—it’s a way of life.

Follow MJ DeMarco

Get The Books that Change Lives...

The Fastlane entrepreneurial strategy is based on the CENTS Framework® which is based on the three best-selling books by MJ DeMarco.

mj demarco books
Back
Top Bottom