Positioning background image on page header
Posted: Thu Jan 05, 2023 6:38 am
I am trying to position a background image on the page header. This is for the customized PDF header.
I want the background image 1 cm from the top margin. But, the background image is always aligned to the top of the margin with 0 cm.
Any thoughts on how to adjust the background image within the available page margin of 2 cm.
Code: Select all
margin-top: 2cm;
margin-bottom: 1.5cm;
margin-left: 1.06cm;
margin-right: 0.81cm;
@top-left{
content: " ";
background-image: url(../images/Reference.png);
background-repeat: no-repeat;
background-position: center center;
background-size: 100% 100%;
}
Any thoughts on how to adjust the background image within the available page margin of 2 cm.