Its uses a jquery cycle plugin

1 answer


Centering images with various widths can be made in a number of ways:

Using margin: 0 auto;, displaying it inline and using text-align: center; or using absolute positioning with extra javascript support.

It seems like jQuery is positioning every image so you should be able to use javascript to calculate the width of the image and using the following solution:

<img src="#" style="left: 50%; margin-left: -[image witdh / 2]px" />
Answered almost 10 years ago by Jens Hedqvist