User Tools

Site Tools


css:resize_an_image_dynamically

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
css:resize_an_image_dynamically [2016/12/11 11:37] petercss:resize_an_image_dynamically [2021/08/08 12:35] (current) – removed peter
Line 1: Line 1:
-====== css - Resize an image dynamically ====== 
- 
-<code css> 
-img { 
-  max-width: 100%; 
-  height: auto; 
-  width: auto\9; /* ie8 */ 
-} 
-</code> 
- 
-<WRAP info> 
-**NOTE**:  **max-width:100%** and **height:auto** works in IE7, but not in IE8 (yes, another weird IE bug).  To fix this, you need to add **width:auto\9** for IE8. 
-</WRAP> 
  
css/resize_an_image_dynamically.1481456279.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki