HTML5 position image in centre of div

Hi. I am trying to position the image in the following div in my project but it appears on the left

 <div style="float: left; width: 25%;" class="div" >
        <h1 style="font-family:'Century Gothic';font-size:16px">xxxxxxxxxxxxxxxxxxxxxx</h1>
     <h2 style="font-family:'Century Gothic';font-size:14px">xxxxxxxxxxxxxxxxxxxxxxxxxx</h2>    
     <p style="font-family:'Century Gothic';font-size:12px">
      Connecting all the users in your operation to a cloud SQL central database will bolster your data management, accelerate your processes and sharpen your decision making.</p>
        <p style="font-family:'Century Gothic';font-size:12px">
<asp:Image ID="Image1" runat="server" Height="144px" ImageUrl="~/Resources/Cloud_Hub.jpg" Width="287px"  ImageAlign="Middle" />
        <p style="font-family:'Century Gothic';font-size:12px">
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?

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

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.

Because you have written - "float: left;" for your outer div.
Remove that.

Add this image inside of DIV and you can add css for that DIV only.

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
Jim RiddlesPrepress/OMS SpecialistCommented:
It would help to see your generated code, not the native code.  If you have a link to the generated page, that would be best.

Also, please use the Code tag anytime you need to display code.  It is very helpful for the experts trying to assist you.

One key item is that you are using an attribute incorrectly, I believe.  When attempting to align an image, the correct attribute is "align", not "ImageAlign".  That attribute has also been depreciated, and does not work for HTML5 pages.  Not seeing your full page, I can't tell what doctype you are declaring.

If you are declaring a HTML5 doctype, then you need to use CSS to achieve the same effect.  The code is something like this:

<asp:Image ID="Image1" runat="server" Height="144px" ImageUrl="~/Resources/Cloud_Hub.jpg" Width="287px"  style="vertical-align:middle;" />

Open in new window

Let me know if you require further assistance.
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
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

From novice to tech pro — start learning today.