I'm currently trying to resize the image depending on the size of the browser. I managed to resize the image horizontally, if I make the browser window narrow, the image will be proportionally resized proportionally. However, when I resize the window vertically, Firefox simply does not want to do this! The code is pretty simple
<body> <div id="content"> <img src="images/abc.jpg"> </div> </body>
and CSS:
#content { height: 100%; padding: 50px; } #content img{ max-height:100%; max-width: 100%; }
Another problem is that the image seems to resize vertically in chrome, but I need to drag the bottom of the browser over the image before it starts to do this. I would prefer the image to start to rubberize as soon as the bottom content fills the "bumps" on the bottom of the image, so to speak. Hope this makes sense.
Any help is much appreciated
bestfriendsforever
source share