Why CSS width property scale the whole image? - Stack Overflow
![](https://i.stack.imgur.com/vzzY6.png)
This is an example from W3School. <img id="myImage" src="pic_bulboff.gif" style="width:100px"> I tried to modify the width from 100px to 300px. Then I found the image not only become wider
![](https://i.stack.imgur.com/Fx0Ma.png)
css - Scale image proportionally within a div - Stack Overflow
![](https://www.terluinwebdesign.nl/en/wp-content/uploads/2021/05/css-calculating-contain-intrinsic-size-for-content-visibility-auto.png)
Calculate contain-intrinsic-size for content-visibility – Terluin Webdesign
![](https://i.stack.imgur.com/0EKtO.png)
html - Scaling div like an image - Stack Overflow
![](https://images.contentstack.io/v3/assets/blt23180bf2502c7444/blt03557cd699ed90ec/60b90cc31ea8cc0cc03a2fcb/Progress_bar_3_no_highlight.png)
Progress Bar Extension Setup Guide
![](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Responsive_Design/mdn-rwd-liquid.png)
Responsive design - Learn web development
![](https://miro.medium.com/v2/resize:fit:877/0*XIycLZ3Ievmf9_Bq.png)
Addressing the iOS Address Bar in 100vh Layouts, by Susie Kim
![](https://image.slidesharecdn.com/eosese-140630041114-phpapp02/85/understanding-stack-overflow-1-320.jpg?cb=1668147989)
Understanding Stack Overflow
![](https://i.stack.imgur.com/6Ipq9.gif)
html - Why does CSS transform influence Site width? - Stack Overflow
![](https://i.stack.imgur.com/3UHI8.png)
javascript - Image not scaling to full width of div element - Stack Overflow