the div element will take the entire width space of the container element if it is not set for the width value.
So, if you want to center the div, you have to set the width ...
The solution to your problem (if I understand it) could be:
<div style="text-align:center;"><span>[... yours content ...]</span></div>
where your div became the span and the new div puts the span in the center. Hope this helps you! Goodbye Alberto
Alberto
source share