I have used the text-align: center CSS property but the image is not getting aligned in center of the body of the HTML page.
I tried the suggestions mentioned in the below URL but couldn't make it work:
Center image using text-align center?
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
</style>
</head>
<body>
<div style="position: absolute; top: 0px; width:794px; height:1122px border:10px solid black" >
<img style="text-align:center; display:block; margin-left: auto;margin-right:auto; width: 747px; height: 1056px" src="Image.jpg" alt="" />
</div>
</body>
</html>
Note: I have to achieve this requirement using inline style only.FYI, In the whole HTML page, only this image will get displayed.