Immagine responsive





Seleziona questo link:

Immagine responsive

e prova a stringere e ad allargare la finestra del browser.

Codice HTML

<img src="https://www.puntoinformaticofree.it/guida_css/resources/foto/foto1.jpg" alt="Natura" class="responsive">


Codice CSS

.responsive {
 max-width: 100%;
 height: auto;
}