PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) HTML/CSS rendering issues Background image to the html page not visible in the pdf

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26812

    I have an html page to which I have added a background image which streches to the outermost div. But for some reason I cannot get the background image to appear in the pdf. The divs that we have used in the page have the height and widths in percentages. Following is the sample div structure from the page

    HTML:
    [language=html:16a308k4]

    [/language:16a308k4]

    CSS for the IMG tag:
    [language=html:16a308k4].background
    {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    background-color: #fff;
    }[/language:16a308k4]

    #29209

    I am not sure if I understand your approach with stretched background image right.

    Try to apply a PD4ML-specific style “background-repeat: scale-xy” to a DIV – it should do the trick.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.