2

I have used page-break-inside: avoid; for page break, that work fine. But in second page there is no margin in top. enter image description here

<div class="section-wrapper keep-together">
            <div class="section-title">
                <p class="title">{{ $section['certification']['title'] }}</p>
                <p class="line"></p>
            </div>
            <div class="content">
                <div class="content-row">
                    <div class="description">
                        <p>{!! $section['certification']['data']['details'] !!}</p>
                    </div>
                </div>
            </div>
        </div>

.section-wrapper {
  position: relative;
  margin-bottom: 3%;
  .section-title {
    .title {
      font-size: 2rem;
      font-weight: 700;
      text-transform: uppercase;
      color: $color-blue;
      padding: 0 80px;
    }
  }
        .desc {
          margin-bottom: 2rem;
          font-weight: 300;
          font-size: 1.5rem;
          text-align: left;
        }
      }
  }
}

Need some margin in second page. I am using laravel 5.7 and snappy pdf

Shunhra Sarker
  • 187
  • 1
  • 2
  • 15

0 Answers0