# Print dashboard with control+P don't align page on center

**URL:** <https://discourse.nodered.org/t/print-dashboard-with-control-p-dont-align-page-on-center/84286>\
**Category:** Dashboard\
**Created:** [4 January 2024 12:12 UTC](https://discourse.nodered.org/t/print-dashboard-with-control-p-dont-align-page-on-center/84286 "2024-01-04T12:12:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elyancorrea](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/elyancorrea/32/27497_2.png) [@elyancorrea](https://discourse.nodered.org/u/elyancorrea)\
**Post date:** [4 January 2024 12:12 UTC](https://discourse.nodered.org/t/print-dashboard-with-control-p-dont-align-page-on-center/84286/1 "2024-01-04T12:12:08Z")

</div>

Hello everyone,

I'm encountering an issue when attempting to print a dashboard using the control+P command from my browser. The printed output seems to be decentralized, and I've tried using a node template to manage this without success.

Here's a snapshot of the dashboard:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/3/a30627f09806a7c9d01d4216c6a85e28a196b6c6.jpeg)

Screen from print dialog:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b2be042fa71ec2c3c7d40e3015f5069b1d60a1ff.png)

On left side from button, has an "invisible bar".

Has anyone discovered a trick to resolve this? I've hide buttons using CSS within the UI template, but the dashboard content still remains aligned to the left.

Any suggestions or insights would be greatly appreciated. Thank you!

I've visited:  
[How can I print a pdf from Dashboard? - General - Node-RED Forum (nodered.org)](https://discourse.nodered.org/t/how-can-i-print-a-pdf-from-dashboard/10332)

---

<div class="post-metadata">

**Author:** ![elyancorrea](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/elyancorrea/32/27497_2.png) [@elyancorrea](https://discourse.nodered.org/u/elyancorrea)\
**Post date:** [4 January 2024 12:18 UTC](https://discourse.nodered.org/t/print-dashboard-with-control-p-dont-align-page-on-center/84286/2 "2024-01-04T12:18:59Z")

</div>

If I increase the width of dashboard, the space get smaller but still a pain on print page.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [4 January 2024 12:28 UTC](https://discourse.nodered.org/t/print-dashboard-with-control-p-dont-align-page-on-center/84286/3 "2024-01-04T12:28:03Z")

</div>

Add custom style to head (via a ui-template)

With some combination of `@media print` or `@page` and overriding margins, you will be able to remove margins (or whatever you need to do to get a print suitable for your needs.

> **[Format for Print: @media, @page | HTML & CSS Basics | Jan's Working with...](https://www.jegsworks.com/lessons/web-2/html/step-mediaprint.htm)**
>
> Free online illustrated Computer Literacy lessons covering the material in a college course, but easy to understand for all ages.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 February 2024 12:28 UTC](https://discourse.nodered.org/t/print-dashboard-with-control-p-dont-align-page-on-center/84286/4 "2024-02-03T12:28:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
