The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Img width 100% responsive
Hello,
I’m trying to set my image to be full width even if i change the width of the browser, link: http://codepen.io/anon/pen/dGCFl
i tried to give it width:100% but i guess it doesn’t make it responsive,
Can you help me please ? :)
Full width of what?
Also, it can’t be responsive and 100% size at the same time..or have I misunderstood.
Do you mean this:
http://codepen.io/Paulie-D/pen/pazxI
Thanks!
So this is the secret:
background-size: contain;
and of course using the max-width, and min-width