AllSupported
Home How To Linux Search
  1. Home
  2. /
  3. CSS
  4. /
  5. Dynamically resizing images based on viewport

Dynamically resizing images based on viewport

By Tech Writer • March 21, 2015 • 1 min read
<style>
.img { /* basic responsive img */
	max-width: 100%;
	height: auto;
	width: auto\9; /* IE8 */
}
</style>

 

 

 

http://www.dynamicdrive.com/forums/entry.php?293-3-Ways-to-Resize-Scale-Web-Images-in-Responsive-Design

Related Articles

Overwride CSS Class

The properties of a second class will override those already set. There is no need to use !important here. For example: .red { background-color: red; } .background-none { background: none; } and &lt;

Use jQuery to select current menu item in css

 This tip is great for use with Joomla and mmenu. @micha149 has shown me this jQuery snippet which will catch all absolute and relative URLs. var url = window.location.href; // Will only work if st

How to swap CSS class names without touching the CSS codes

  This technique might be very useful for this that deal with templates where the CSS themes may be overridden but you wish to keep certain classes references even when the template undergoes version

AllSupported

Your trusted source for tech support and tutorials.

Categories

  • How To (90)
  • Linux (35)
  • PHP (26)
  • Productivity (23)

Resources

  • About Us
  • Contact
  • RSS Feed

Connect

Stay updated with the latest tech support articles and tutorials.

© 2025 AllSupported. All rights reserved.