# How to center align a image which is loaded dynamically

**URL:** <https://forum.kirupa.com/t/how-to-center-align-a-image-which-is-loaded-dynamically/280046>\
**Category:** Uncategorized\
**Created:** [January 22, 2009, 3:11am UTC](https://forum.kirupa.com/t/how-to-center-align-a-image-which-is-loaded-dynamically/280046 "2009-01-22T03:11:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deshetty](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@deshetty](https://forum.kirupa.com/u/deshetty)\
**Post date:** [January 22, 2009, 3:11am UTC](https://forum.kirupa.com/t/how-to-center-align-a-image-which-is-loaded-dynamically/280046/1 "2009-01-22T03:11:21Z")

</div>

Hello,  
I have created a slideshow, in which image is loaded dynamically from a xml. the issue is the images gets aligned to left ,top position by default. i want it to center align. can anybody provide me the solution

Thank you
