Closed (fixed)
Project:
Zentropy
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2012 at 14:24 UTC
Updated:
2 Apr 2012 at 02:54 UTC
Hi,
I think this ...
img, object, embed {
max-width: 100%;
}... should be adjusted to ...
img, object, embed {
max-width: 100%;
height: auto;
}... respect aspect ratio.
Comments
Comment #1
migueltrindade commentedThere is not need to set "height: auto" since the height will be automatically calculated when the page was resized.
Comment #2
Wolfgang Reszel commentedWell it's not needed if the IMG tags have no height. But Drupal normally renders IMG tags with width and height (which is a good decision).
Just have a look to this simple example:
http://jsfiddle.net/c2BXC/
Comment #3
migueltrindade commentedSorry Wolfgang Reszel, you are completely right. I just made a mistake in my tests :(
Fixed on dev release.
Comment #4
Wolfgang Reszel commentedSorry, I haven't tested the damn IE8/7. It also needs adding
width: auto;Comment #5
alexweber commentedFixed in 2634cb2
Comment #6
alexweber commented