WordPress Caption Formatting

Don’t know what was the actual problem. Using following syntax to display content solved problem.

<div>
    <h tag><?php the_title(); ?></h tag>
    .............other things like date and author
    <div>
         <?php the_content(); ?>
    </div>
</div>

Any way, thanks for everybody who tried to answer my question.