Table take margins in media print

Asked

Viewed 256 times

1

I have a table and I’m trying to take her margins at the time of printing with media print, however I’ve tried:

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

And nothing works and I need more printing space.

  • Post the code to better help.

  • Either take the margins of the table or the "sheet"?

2 answers

0

Try this:

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

#page {
   border-collapse: collapse;
}

the Dice border-collapse: collapse; condenses the edges into a.

0

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.