Table to take margins in the media print

1

I have a table and I'm trying to get rid of it at print time with media print, though I've already tried:

margin: 0  0 0 0 !important;
padding: 0  0 0 0 !important; 

And nothing works and I need more space in the print.

    
asked by anonymous 30.10.2017 / 17:35

2 answers

0

Try this:

#page td {
   padding:0; margin:0;
}

#page {
   border-collapse: collapse;
}

Given border-collapse: collapse; condenses the edges into one.

    
30.10.2017 / 17:38
0

Make sure your selector is being applied correctly and that the print style is being properly called. Ex: <link rel="stylesheet" href="#" media="print"> .

    
30.10.2017 / 19:36