We help IT Professionals succeed at work.

work with images in a repeater control

siddhuoops
siddhuoops asked
on
220 Views
Last Modified: 2010-04-15
Hi there,

           I am using a repeater control to display all the images in a page. Right now, the images are displayed on a page when the page loads up. But the problem is there is no spacing in between the images. The width of the content is 800px, so it tries to fit in as many as possible. I want to have four images per row with some spacing between them. Could I use tables to do it or could I just have the repeater to reside in a div tag? What are the properties I need to have so that I get what I am looking for.
Comment
Watch Question

You'll have to add some kind of spacing control to your repeater template. The properties you need will depend on what you're trying to do. Do you want the images in a rectangular grid? Use a table. Do you want a border around each image? Set the img border property.

Putting the repeater in a DIV will not accomplish anything.
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thank You so much..awesome
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.