Click here to Skip to main content
15,921,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Dynamically adding images into the repeater control and the images are different sizes when we binding images into the repeater control it will not correctly align them, it should display like a dis alignment of the images. If there is some small images are placed their means then the next image is not correctly align them.

Please Guide me.

Thanks in Advance.
Posted
Updated 7-Jul-11 21:12pm
v2

either you have to fixed width and height of image tag and upload/re-size image in this dimension.

because if you don't fixed this and images are not fixed type then obliviously it will look without alignment. the reason behind this is user may upload vertical, horizontal, square, round etc images and based on that you can not fixed position or padding/margin between images and div.


Hope you got my point.
 
Share this answer
 
It's html, so you can use CSS to centre the images if you like. You can even force them to all render the same size, by setting the size of the img control to always be the same.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900