Jump to content

Responsive front images


stl314

Recommended Posts

You can use Foundation's GRID utility.

<ul class="small-block-grid-1 medium-block-grid-2">
  <li>image</li>
  <li>image</li>
  <li>image</li>
  <li>image</li>
  <li>image</li>
  <li>image</li>
</ul>

This will get you a two-column grid when viewing on medium and wider viewports, but a one-column grid on small viewports (mobiles). There will be as many rows as needed, and images should scale (probably need to style their width to be max-width:100%, but you may need to experiment with that, Foundation CSS already has <img> tags at max-width:100%).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...