0

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?

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by JRM
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.