Home › Forums › CSS › Banner height & width problem › Reply To: Banner height & width problem
November 25, 2015 at 6:38 am
#235241
Participant
Try setting padding-bottom as % instead. That way, height is created by the padding, which is relative to width, so it will resize fluidly.
There’s a round-up here that you might find useful http://fofwebdesign.co.uk/template/_testing/scale-img/scale-img.htm
And a blog post with explanations http://www.dynamicdrive.com/forums/entry.php?293-3-Ways-to-Resize-Scale-Web-Images-in-Responsive-Design