Why won't my table move to the correct place in my PDF?

Hello, I'm using iTextSharp to convert an HTML document to a PDF. I have a table in the HTML document that I need to move / shift to a certain location on the document. When I run the HTML document by itself, the table is shifted/moved appropriately.

table in HTML doc
However when I convert the HTML doc to a PDF the table moves to the upper left corner, ignoring my css. How do I solve this?

table in PDF doc

my HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="../js/jquery-1.11.0.min.js"></script>
    <script src="../js/response.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <link href="../css/theme.css" rel="stylesheet" />
    <link href="../css/simplex.css" rel="stylesheet" />
    <link href="../css/bootstrap.css" rel="stylesheet" />
    <style type="text/css">
        <!--
        #certTable {
            margin: 300px 0 0 50px;
        }
        -->
    </style>

</head>
<body>
    <!--<h1 style="font-weight: bold">Northwind Traders Receipt</h1>
    <p>
        Thank you for shopping at Northwind Traders. Your order details are below.
    </p>
    <br /><br />
    <h2 style="font-weight: bold">Order Information</h2>-->
    <!--<br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />-->
    <div id="tableDiv" style="margin-top: 100px; float: left;">
        <!--<table class="table-bordered">-->
        <table border="1" width="75%" id="certTable">
            <tr>
                <td style="font-weight: bold">Order:</td>
                <td>[ORDERID]</td>
            </tr>
            <tr>
                <td style="font-weight: bold">Price:</td>
                <td>[TOTALPRICE]</td>
            </tr>
            <tr>
                <td style="font-weight: bold">Order Date:</td>
                <td>[ORDERDATE]</td>
            </tr>
        </table>
    </div>
    <br />
    <br />
    <!--<h2 style="font-weight: bold">Items In Your Order</h2>
    [ITEMS]-->
    <br />
    <br />
    <!--<p style="text-align: center; font-style: italic; font-size: 10pt">
        Thank you for your business! If you have any questions about your order, please contact us at
        800-555-NORTH.
    </p>-->
</body>
</html>

Open in new window

LVL 1
Michael SterlingWeb Applications DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Naitik GamitSoftware DeveloperCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael SterlingWeb Applications DeveloperAuthor Commented:
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.