html - Responsive images reflow -


we developing responsive site allow user upload images.

we preserve original , generate thumbnail image served users lower resolutions.

the issue has been raised when image switched in logic smaller screen size there visible re-flow of elements around it.

i unsure how prevent images of inconsistent height cannot set initial height on containing element.

any ideas appreciated.

i looked @ this:

http://andmag.se/2012/10/responsive-images-how-to-prevent-reflow/

but seems scenarios know ratio i.e. 16:9, 4:3 etc

i assume thumbnails have fixed maximum size.

you can put image inside box maximum height/width set orientations (landscape, portrait, square) doesn't matter. give fixed whitespace around image.

you can generate whitespace in thumbnail giving fixed width/height in images.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -