I need help to add background image to chapter opener page only, page 1.
The background image will change for each chapter in the book.
This is the CSS I used. It is putting that bkg image on every page in the chapter, I only want image on 1st page of chapter.
I Tried div.chapter[id="id-1.5"]:first & div.chapter[id="id-1.5"]:first-child and no image showed up.
/*Ch Opener background images [id="id-1.5"]*/
div.chapter[id="id-1.5"] {
background-image: url('ia_5043_SpiritualPracticesBrain/ch1_opener.jpg');
background-position: 0 0;
background-repeat: no-repeat;
background-size: 4.125in auto;
background-image-resolution: 300dpi;
/*the following opens up a viewing area for the background image into the margin*/
margin-top: -.5in;
padding-top: .25in;
}
Because the image changes in every chapter opener I wasn't able to use @page body :first
Your help is greatly appreciated.
Donna
The background image will change for each chapter in the book.
This is the CSS I used. It is putting that bkg image on every page in the chapter, I only want image on 1st page of chapter.
I Tried div.chapter[id="id-1.5"]:first & div.chapter[id="id-1.5"]:first-child and no image showed up.
/*Ch Opener background images [id="id-1.5"]*/
div.chapter[id="id-1.5"] {
background-image: url('ia_5043_SpiritualPracticesBrain/ch1_opener.jpg');
background-position: 0 0;
background-repeat: no-repeat;
background-size: 4.125in auto;
background-image-resolution: 300dpi;
/*the following opens up a viewing area for the background image into the margin*/
margin-top: -.5in;
padding-top: .25in;
}
Because the image changes in every chapter opener I wasn't able to use @page body :first
Your help is greatly appreciated.
Donna