Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
Angular 12 - print header with dynamic content on every page is overlapping with last item in ngfor

HTML :

<div class="item-view break-after " *ngFor="let item of selectedItems; let i = index">
    // HEADER
    <div class="report container">            
            <div class="report-date">
                <div class="content-area">
                    <span class="size-13 uppercase">Date:</span><span class="uppercase"> {{ 
                      date?.displayLong }}</span>
                      <span class="pull-right">
                        <span class="size-13 uppercase" > Item: </span> 
                        {{item.firstName}} {{item.lastName}} -  {{item.code}}"
                      </span>
                </div>
            </div>
        </div>                
       <div> content </div>
    </div>

css:

.report-date {
  flex-basis: 100%;
  background-color: green;
  font-size: 18px;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  flex-wrap: wrap;
  padding: 0;
  color:white;

  .content-area {
    max-width: 1170px;
    margin: 0 auto;
    position: relative;
  }

}

When printing the header content is overlapping and only the last item in ngfor is displayed in header. How to display each item content in header when printing

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!