Remove table/cell border
See original GitHub issueHi,
how do you completely remove any table/cell borders? Currently this is our setup:
doc.autoTable(columns, rows, {
styles: {
cellPadding: 0,
rowHeight: 10,
fillStyle: 'S',
halign: 'center',
valign: 'middle',
fontStyle: 'bold',
lineWidth: 0.01,
fontSize: 10,
textColor: 0,
},
margin: [68, 0, 0, 140] ,
tableWidth: width / 2 - 4,
bodyStyles: {
lineColor: [0, 0, 0, 0]
},
drawHeaderRow: function() {
return false;
},
beforePageContent: function(data) {
doc.addImage(imgData, 'JPEG', 0, 0, width, height);
}
});
The above seems to work with mac/ios safari and ff but mac chrome adds a thin white border. Tried also with: lineWidth: 0.00, lineWidth: 0.0, lineWidth: 0,
What we need to achieve is have a background image with the table but no table backgrounds or borders.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to remove td border with html? - Stack Overflow
To remove borders between cells, while retaining the border around the table, add the attribute rules=none to the table tag.
Read more >Apply or remove cell borders on a worksheet - Microsoft Support
To cancel a selection of cells, click any cell on the worksheet. Click Home > the Borders arrow > Erase Border, and then...
Read more >Easy Ways to Style HTML Tables (and remove the borders)
Table with no outside border ... Note: you can use “border: none;” or “border: 0px;”. Either way it results in the outside border...
Read more >Remove Borders From HTML Table | Delft Stack
We can set the border property to none to remove the border from an HTML table. The property is short-hand of different border...
Read more >How do you Hide a Cell Border? - HTML & CSS - SitePoint
I have a table that has merged rows but also regular, unmerged rows/cells. I set this style... td { margin: 0px; padding: 5px;...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes and same thing with mac chrome showing the thin white border but mac ff and safari not showing it. Code:
Oh! My bad, updated the readme with the latest version now.