Printing deep nested DIV

My JavaScript framework is DIV happy and the DIV’s I want to print are way down in the DOM. I hide all the nodes then do display: block on what I want to print. It appears that a DIV that is visible but up the DOM tree has a parent that is hidden won’t show. Any ideas on this and how to pull off using @media print?

Does Printing help?

That is what I based my code on but in that example the div is right off the body.






Mine is way down in the DOM











It’s not a GoJS problem but a CSS challenge Smile


Just wondering if you had any suggestions to try.

Why not put it at the top?
Oh, wait – maybe that is what you meant by your framework. What are you using?