Can someone explain why the code provided below is not centering the <p>
text and instead placing it around 60-70% of the width?
<div>
<img src="logo.jpg" style="float: left;">
<p style="text-align: center;"> hello world </p>
<img src="logo2.jpg" style="float: right;">
</div>