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:

<div.a>
    <div.b>
        <table>
        </table>
     </div>
</div>

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?

margin:0;
padding:0;

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.