size: landscape letter; body { The problem is first you write size: landscape; but then you write size: A4; honey gourami and betta. ). Design like a professional without Photoshop. Hello Michael, Thank you for coming to the forum. Our functionality will handle positioning the custom cursor based on the mouse movement and also the cursor interaction with elements on the page. size: landscape; In this tutorial, well look at how to add a personal touch to any website by using a custom cursor, firstly using a CSS-only approach, then a more interactive JavaScript method. Try something like this in your CSS: @page { size: 6in 9in; } @page landscape { size: 9in 6in; } div.landscape-content { page: landscape; } If If not provided, domPDF is rendering like default portrait, and My solution: