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
Post a Comment