This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i have an issue concerning html/webdesign. Let's say i have a collection of images of which i don't know the size. I iterate over the collection to display the images. These images can be in all shapes and sizes. Is it possible to resize these images in order for them to be displayed on the screen properly?? So that one image will not take up the full screen and another will be hardly vissible.
Thanks for the info.
P.S. perhaps i can give the user the possibility to click on a link which generates a popup containing the image, so resizing will be no issue. But i prefer to show the images immediately.
you can set fixed width="" and height="" attributes on <img> tag but images will be resized roughtly (by the browser).
Joined: Mar 29, 2004
I know you can set fixed width and height, but if you don't know the shape of an image it is not possible to set width and height fixed. In that you never know what the result will be. This can be a rather awkward image if you set the width and height fixed.
Joined: Feb 19, 2005
Images of different shapes.. let me think round, triangle, star-shaped