samedi 5 avril 2014

Scaling img with CSS


Vote count:

0




I'm trying to do specific scaling using css. below is an image of what I'm after. The image will be 300px from the top of the browser page. Above it will be static test.

I want the image below the text to scale proportionally with the browser. Keeping all the image intact and not cutting off the bottom or having to scroll for the bottom of the image.


The image below is a representation of the browser window. The browser also has an option to go fullscreen so it should be able to scale .


I have tried using width 100% and height auto on the img tag but that's not exactly what I'm after.


enter image description here



asked 47 secs ago

Chapsterj

1,779





Aucun commentaire:

Enregistrer un commentaire