Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Banner height & width problem Reply To: Banner height & width problem

#235241
Beverleyh
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