The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Re-size Banner Image
As you shrink the screen, I want the banner image to shrink as well.
There are currently scroll bars and I don’t want that.
My CodePen
If it’s a banner image is should be a background-image and not in the HTML but leaving that aside…try this instead.
background-image
.test img { display: block; max-width:100%; }
http://codepen.io/Paulie-D/pen/wEipc
That’s why it should be a background image
http://codepen.io/Paulie-D/pen/iGyat