I'm stumped.
I have a box model that is controlled by css in other parts of a CMS.
For simplicity, lets say it's like this:


I wish to print the raw table in the midst of the divs without the CSS margins assigned to them or to print the table alone.

To do this I would use :

@media print{
div.a,div.b {display:none}

The problem is that everything inside that box vanishes also.
Is there a way to accomplish the table print with CSS?

You probably want to set them to width: 100%, margin: 0, padding: 0.


Thanks guys
That seems to be the solution.
Just set all of the margin, padding and width stuff to 0.