Adding two background-images on my frontpage
Posted: Tue May 03, 2022 4:07 pm
Hi there!
I'm trying to add two different background-images on my frontpage:
But it doesn't work, only the first image (bandeau.png) is displayed.
I tried to change the order and add the first, but the same problem occurs, I only get one of the two images (the first declared in the background-image element).
I also tried to make both images kind of small, as I thought they were maybe overlapping, but no.
To sum up, what I'm trying to do is :
Best regards,
Romane
I'm trying to add two different background-images on my frontpage:
- One that is common for every document and that never changes.
- One that changes for every document and that is defined in the bookmap using:
Code: Select all
<prodinfo> <prodname>TopSolid'Cam<data name="background" value="images/bg_image.jpg" format="jpg"/></prodname> </prodinfo>
Code: Select all
@page front-page {
background-image: url("images/bandeau.png"), url(oxy_xpath("//*[contains(@class, 'bookmap/bookmeta')]//*[contains(@class, 'topic/data')][@name='background']/@value"));
background-repeat: no-repeat, no-repeat;
background-position: 0cm 16.5cm, 0cm 0cm;
background-size: 100%, 20%;
}
I tried to change the order and add the
Code: Select all
url(oxy_xpath("//*[contains(@class, 'bookmap/bookmeta')]//*[contains(@class, 'topic/data')][@name='background']/@value"));
I also tried to make both images kind of small, as I thought they were maybe overlapping, but no.
To sum up, what I'm trying to do is :
- A footer that never changes
- An image that takes 2/3 of my front page
- Ideally a logo that will be in the header
Best regards,
Romane