title: Prevent Content From Spilling Over to Next Page
body: <p>I am building an app that formulates how much CBD needs to be put into a product to meet certain requirements. I have included instructions and required materials that are needed to make each recipe. When the user prints the recipe, ideally I would like to not show the instructions or required materials on the sheet.</p>
  <p>I have managed to hide all of the required materials and instructions but when the page is set to be printed, it prints a blank page (I'm assuming because the content is spilling over to the next page even though it is hidden) and I do not want this to happen. Here is the HTML for the required materials and instructions:</p>
  <pre><code>&lt;div class=&quot;noprint&quot;&gt;
    &lt;hr&gt;
    &lt;h1 id=&quot;centered&quot;&gt;Instructions&lt;/h1&gt;&lt;br&gt;
    &lt;h3 id=&quot;centered&quot;&gt;Required Materials&lt;/h3&gt;
    &lt;div class=&quot;row&quot;&gt;
      &lt;div class=&quot;column&quot;&gt;
        &lt;h5 id=&quot;centered&quot;&gt;Items&lt;/h5&gt;
        &lt;ul&gt;
          &lt;li&gt;1 Aluminum Mixing Bowl&lt;/li&gt;
          &lt;li&gt;1 Metal Measuring Cup&lt;/li&gt;
          &lt;li&gt;1 Glass Measuring Cup&lt;/li&gt;
          &lt;li&gt;1 Small Scale&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
      &lt;div class=&quot;column&quot;&gt;
        &lt;h5 id=&quot;centered&quot;&gt;Items&lt;/h5&gt;
        &lt;ul&gt;
          &lt;li&gt;1 250 mL Beaker&lt;/li&gt;
          &lt;li&gt;1 Funnel&lt;/li&gt;
          &lt;li&gt;1 Plastic Pipet&lt;/li&gt;
          &lt;li&gt;Cleaning Supplies &amp; PPE&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;h3 id=&quot;centered&quot;&gt;Steps for Creation&lt;/h3&gt;
    &lt;div class=&quot;instructions&quot;&gt;
      &lt;ol&gt;
        &lt;li&gt;Always begin by washing and sanitizing hands. Then proceed to sanitize all material with rubbing alcohol
          and paper towels.
        &lt;/li&gt;
        &lt;li&gt;Measure out the correct amount of either the Dead Sea Salt, Epson Salt, or Baking Soda. Do so by using the
          metal measuring cup and scooping the raw goods into the glass measuring cup. Put the raw material into the 
          aluminum mixing bowl.
        &lt;/li&gt;
        &lt;li&gt;
          Repeat Step 2 with both the other two materials not used in Step 1.
        &lt;/li&gt;
        &lt;li&gt;
          Measure out the correct amount of CBD tincture with the aide of the 250 mL beaker. Mix in the tincture slowly,
          preferably in thirds of the total amount of tincture needed.
        &lt;/li&gt;
        &lt;li&gt;
          Use the plastic pipet to measure out the correct amount of milliliters of Grosso E.O. Mix in the Grosso E.O with
          the rest of the mixture. Continue to mix until the solution is as homeogeneous as possible.
        &lt;/li&gt;
        &lt;li&gt;
          Put aluminum foil over the top of the mixing bowl, write the batch number on top, and store the finished product
          in a freezer one day before bottling.
        &lt;/li&gt;
      &lt;/ol&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>And here is the CSS for the &quot;noprint&quot; class:</p>
  <pre><code>/* Do not print */
  .noprint {
    visibility: hidden;
  }
  </code></pre>
  <p>Any help is greatly appreciated. Thank you!</p>