The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS space before a table ONLY IF the table is printed

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #285817

    I’m creating a report card for grades K-6 which prints certain tables based on the student’s grade. For example, a 5th grader wouldn’t have “Reading Stage” displayed on the report card, but a 1st grader would. I’ve got the styles formatted correctly to conditionally print the tables, but it’s the spacing in between the tables I’m struggling with.

    I want there to be a standard amount of space between tables, so I’ve tried things like adding a blank row as the first row of the table, or adding margin-top=50pt. Everything I’ve tried results in space added for ALL tables, even the hidden ones, so there is sometimes 200 points of dead space between tables. Not good.

    I need a (creative) way to conditionally add space ONLY IF the table is going to be printed.

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.