02-07-2012 12:15 PM
hello,
What would be the best practice for the images to be displayed the same size, regardless of the size of the display device.
02-08-2012 10:50 AM
I think BB recommends using the "em" units, but in my experience, it doesn't scale that well to smaller devices, and I find percentages to work better. If you do something like this
<img src="images/image1.png" width="5%" />
your image will take up 5% of the available width of the screen, and the height will be scaled proportionally. That way, no matter how wide or narrow your display is, the image will still be the same relative size.
02-10-2012 12:18 AM
Thanks, I'll try using this
02-11-2012 07:26 PM
this code does not work, the image is reduced to shorter
02-12-2012 12:12 PM
02-12-2012 09:50 PM
yes, the image is reduced
02-12-2012 10:18 PM
02-12-2012 10:28 PM
exact, I want the image is the same size regardless of screen size.
sorry my English is not very good
02-13-2012 05:41 AM
02-15-2012 11:09 PM
does not work, I'll prepare a demo so they can see what happens