DDX export PDF without margin
Hey writing a DDX table card to replace regular DOMO table because the margin around the table is making our PDF export for the dashboard push over.
Attached picture,
DDX table is the 1st
DOMO table is the 2nd.
You can see how much bigger the margin is on the top card and on the bottom it's almost zero.
I have nothing in css code that would create a margin or padding around the DDX table. Any ideas on how I can remove it? CSS code is below
body {
font-family: 'Open Sans';
background-color: #11ffee00;
}
#myTable {
width: 100%;
height: 100%;
border-collapse: collapse;
border: 2px solid #d6d6d6;}
th {
font-size: 16px;
font-weight: 900;
text-align: center;
background-color: #D9EBFD;}
td {
font-size: 14px;
padding-top: .5
px;
border: 1px solid #d6d6d6;}
td.text{
color: #ffffff;
text-align: left;
width: 64%;
}
td.number{
color: #000000;
text-align: right;
width: 12%;}
Best Answer
-
Hi @Jessica
What does your HTML code like? Are you including your graph in a <div> tag? Have you set the margin on your <div> tags in the CSS to be 0?
Also you could add a colored border to your div or other tags to see where they're actually being displayed to help diagnose your issue if it's within your HTML code or if Domo is adding the padding within the card.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Answers
-
Hi @Jessica
What does your HTML code like? Are you including your graph in a <div> tag? Have you set the margin on your <div> tags in the CSS to be 0?
Also you could add a colored border to your div or other tags to see where they're actually being displayed to help diagnose your issue if it's within your HTML code or if Domo is adding the padding within the card.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
Agreeing with what Grant put here, and adding a little more. It would be very helpful to see the HTML code as well.
If your table card is contained within a
<div>
or other elements, check these containers as well. Ensure that margins, padding, and borders are properly managed. Applying styles likemargin: 0;
andpadding: 0;
to these containers might help eliminate unexpected spacing.
Double-check the border and padding properties for the elements surrounding the table card. Both CSS border and padding properties can affect the overall appearance. If there's a specific border causing the issue, you can try removing or adjusting it. Also, remember to ensure thatborder-collapse
and related properties are consistent and not inadvertently affecting the rendering.0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive