Javascript-форум (https://javascript.ru/forum/)
-   (X)HTML/CSS (https://javascript.ru/forum/xhtml-html-css/)
-   -   Подскажите с размещением блоков (https://javascript.ru/forum/xhtml-html-css/58095-podskazhite-s-razmeshheniem-blokov.html)

js_newbie 04.09.2015 12:41

Подскажите с размещением блоков
 
Вложений: 2
При вёрстке страницы столкнулся с проблемой, что не могу выставить блоки в заданом порядке. В моём случае блок "Bags"(тот, что высокий) портит всю малину. Пробовал через флекс, пока что остановился на флоате. Может можно как-то с этим блоком разобраться, что бы всё вышло как на макете?
<main>
      <figure class="huge">
        <img src="img/greenTshirt.png" alt="">
        <figcaption>T-Shirts</figcaption>
      </figure>
      <figure class="normal">
        <img src="img/cards.png" alt="">
        <figcaption>Cards</figcaption>
      </figure>
      <figure class="normal">
        <img src="img/pens.png" alt="">
        <figcaption>Pens &amp; Pencils</figcaption>
      </figure>
      <figure class="wide">
        <img src="img/notebooks.png" alt="">
        <figcaption>Notebooks</figcaption>
      </figure>
      <figure class="normal">
        <img src="img/toys.png" alt="">
        <figcaption>Toys</figcaption>
      </figure>
      <figure class="high">
        <img src="img/bags.png" alt="">
        <figcaption>Bags</figcaption>
      </figure>
      <figure class="normal">
        <img src="img/scrum.png" alt="">
        <figcaption>Scrum cards</figcaption>
      </figure>
      <figure class="normal">
        <img src="img/magnets.png" alt="">
        <figcaption>Magnets</figcaption>
      </figure>
      <figure class="big">
        <img src="img/redCaps.png" alt="">
        <figcaption>Caps</figcaption>
      </figure>
      <figure class="normal">
        <img src="img/magnets.png" alt="">
        <figcaption>Magnets</figcaption>
      </figure>
      <figure class="normal">
        <img src="img/pens.png" alt="">
        <figcaption>Pens &amp; Pencils</figcaption>
      </figure>
      <figure class="normal">
        <img src="img/toys.png" alt="">
        <figcaption>Toys</figcaption>
      </figure>
  </main>

Код:

figcaption
{
        position: absolute;
        width: 100%;
    height: 41px;
        bottom: 0px;
        padding-top: 13px;
        padding-left: 20px;
    font-size: 21.333px;
    font-family: "SegoeUIBold";
    opacity: 0.8;
    background-color: #FFF;
}

figure
{
        position: relative;
        cursor: pointer;
        float: left;
        margin-right: 10px;
        margin-bottom: 10px;
}



Часовой пояс GMT +3, время: 14:56.