We help IT Professionals succeed at work.
Get Started

asp.net  DataList - images

Avner_Lehavi asked
Last Modified: 2012-05-09
I am using DataList to display images
I  change the images width to 50px, so they can function as thumbnails
and use javascript to show the Image in actual size, when the "thumbnail" is being clicked

My problem is: white pixels are being added to the top of the image in the DataList.
Even if i change the the height of the Image, it does not help.

I know how to control the cell padding, margin and so... but it doesn't help
i know it is a problem of white pixels  being added to the top of the image,
because when i click there the big image changes (is it should - my javascript code)

So.. anyone knows how can i get rid of these white (or maybe they are transparent)  pix. being added? I attach an Image to demonstrate (It is a screen shot anf i added the arrow and frame to
make it clear

Thanks so much... I've been trying to solve this for two days ;(
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE