html - Pushing divs to a new line on mobile view -


so have simple image-thumbnails landing page like:

<div style="display: inline-block;"><img style="margin: 3px 3px;" src="..." alt="" width="200" height="200" /></div> <div style="display: inline-block;"><img style="margin: 3px 3px;" src="..." alt="" width="200" height="200" /></div> <div style="display: inline-block;"><img style="margin: 3px 3px;" src="..." alt="" width="200" height="200" /></div> <div style="display: inline-block;"><img style="margin: 3px 3px;" src="..." alt="" width="200" height="200" /></div> 

on site 4 shown side side on desktop. how force them appear in twos in 1 line on mobile view?

so: desktop:

# # # #

mobile:

# #

# #

if ok clear:both go solution.

updated demo give break @ point want to..i have used custom media queries , change according need. hope help..


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -