Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27021

    Absolutely positioned div inside body tag not rendering correctly.

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" ><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>MY Title</title>
    <style media="all" type="text/css">
    
    #address {
    position: absolute;
    top: 4.3px;
    }
    </style></head>
    <body class="myClass"><div id="address">Wilma Sown<br>20 SW Jefferson St<br>Portland<br>OR<br>97201</div>
    </body>
    </html>

    #29748

    On my workstation the document is converted as expected. See attached.

    Obviously a reason of conversion problem is in conversion parameters. If a content appears in the resulting PDF document tiny, I would suspect htmlWidth API parameter value is set too big.

    #29749

    I don’t think there is an issue with html width parameter value because putting a relative positioned div around this absolutely positioned div solves the issue.

    I just want to know, whether standalone div’s positioned absolute to the view port can be rendered correctly by pd4ml ?

    I will also check the width we are setting. Also this issue is reproducible only in PDF format.

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

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