CSS background path and page-break-inside issue
-
I have two issues which seem to be related.
On a div I have a css class .section-part with the following styles in the stylesheet:
.section-part{ background: url('https://localhost:8888/myproject/wp-content/wp-mpdf-themes/images/spacer.jpg') no-repeat 0 100%; margin-bottom: 30px; padding-bottom: 30px; /* page-break-inside: avoid; */ }
Issue 1: The only way I can see the background image is when I use the full image path. Relative paths do not work. Am I doing something wrong?
Issue 2: When I enable the page-break-inside: avoid; style, the last div jumps to the next page like it should, however, my background image disappears.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘CSS background path and page-break-inside issue’ is closed to new replies.