Forum How do I...?

Conditional Column

throttlup
How do I show a column only if it has content on a page? I have a block floating left and the content to the right floats to the right exactly as expected. What I want however is for the left block to take up the entire page height if there is any content on the page, and be invisible if there is no content on the page. See image
  1. floating-layout-problem.jpg2.2 MB
    example layout
mikeday
That sounds a little bit tricky to do in one go with CSS, it might require checking the final PDF with JavaScript and regenerating it with adjusted style.

The simplest way might be to try using a table!