F
F
freeman02042015-09-27 12:41:04
css
freeman0204, 2015-09-27 12:41:04

There are 4 and 10 photos in a row. How to split a grid?

There are 4 and 10 photos in a row. How to split a grid?
screenshot.ru/02b8d350d83109cea589e11a5b18478a
screenshot.ru/4929e8a80daa1627424be258461f46ae
Make a cell for each photo? In the second case it will be like this:

<div class="container">
      <div class="row">
          <div class="cols col-3">
            <img src="http://placehold.it/206x120" alt="фото">
          </div>
          <div class="cols col-3">
            <img src="http://placehold.it/206x120" alt="фото">
          </div>
          <div class="cols col-3">
            <img src="http://placehold.it/206x120" alt="фото">
          </div>
          <div class="cols col-3">
            <img src="http://placehold.it/206x120" alt="фото">
          </div>
          </div>
        <div class="row">
          <div class="cols col-3">
            <img src="http://placehold.it/206x120" alt="фото">
          </div>
          <div class="cols col-3">
            <img src="http://placehold.it/206x120" alt="фото">
          </div>
          <div class="cols col-3">
            <img src="http://placehold.it/206x120" alt="фото">
          </div>
          <div class="cols col-3">
            <img src="http://placehold.it/206x120" alt="фото">
          </div>
        </div>
    </div>

And in the first one, how if there are 12 columns and photo 10 is not divisible by an integer. Is it better to give cols col-12? Please advise the best.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Karpan, 2015-09-28
@dvguinf

Can use a div width of 10% ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question