I have to generate square thumbs from various images (i don’t know the resolution!).
I can use a div with a fix width & height as a container (overflow hidden). Then i can place the image inside and resize it until the smaller side fits into the container. no problem.
but i would prefer to CENTER that image. But i don’t know which way i have to move it (to the left or top). Neither do i know how far i have to move it.
Though you could try image size detection and then based on that, use different classes — one has background size 100%, the other one auto 100% or something.
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.