0

i am using syncfusion pdf reporting in my html code css property float left property which i am applied on div not working please give any suggesstion

this is my code

"<div name=\"divname\" style=\"width: 450px; float: left; text-align: right; height: 30px;\">"+
                "<div style=\"width: 100px; text-align: right; height: 30px; float: left; position: relative;\">"+
                    "<span>Client Name: </span>"+
                "</div>"+
                "<div style=\"width: 325px; padding-left: 10px; text-align: left; height: 30px; position: relative; float: left;\">"+
                    "1233"+
                "</div>"+
            "</div>"+
            "<div name=\"divcompany\" style=\"width: 450px; float: left; text-align: right; height: 30px;\">"+
                "<div style=\"width: 100px; text-align: right; height: 30px; float: left; position: relative;\">"+
                    "<span>Company: </span>"+
                "</div>"+
                "<div style=\"width: 325px; padding-left: 10px; text-align: left; height: 30px; position: relative; float: left;\">"+
                     "1233"+
                "</div>"+
            "</div>"+  

1 Answer 1

0

The Syncfusion Essential PDF uses the Internet explorer web browser control to render the html file into PDF document by generating EMF. The PDF document will appear as same as the HTML file rendered in IE browser.

You have aligned the text to right, make the text-align property to “left” to make your div content align to left.

Regards, George

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.