Forum How do I...?

set Different margin-top for different PDF pages

Talal
I am making a website that generates resumes in the pdf format. The styling of the resume is such that I do not want the top margin to be applied at all on the first page, but when the second page starts, the top-margin should be applied to the text so that it does not touch the top of the page. If some help could be provided in this matter that would be very helpful.
Below are the links to understand better
https://www.dropbox.com/s/zk0ektd7naw8ipo/img2.png?dl=0
https://www.dropbox.com/s/0e36illi0w4i0ng/img1.png?dl=0
norabrowndesign
You can set margins for all pages, then reset it to zero for just the first page, like so:

@page{
  margin-top: 1.5in;
}
@page:first{
  margin-top: 0;
}