Ответы пользователя по тегу Bootstrap
  • Bootstrap 4 Flexbox?

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <title>Document</title>
    </head>
    
    <style>
      body {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
        height: 100vh;
        justify-content: space-around;
      }
      .img {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        justify-content: center;
        -ms-align-items: center;
        align-items: center;
        align-content: center;
        height: 80vh;
      }
      .text {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        justify-content: space-around;
      }
      img {
        display: block;
        max-height: 50%;
        max-width: 50%;
      }
    </style>
    
    <body>
      <div class="img">
        <img src="http://boombo.ru/uploads/posts/2011-08/1312186058_chasti-tela-18.jpg" alt="">
      </div>
      <div class="text">
        <div class="text0">
          TEXT
        </div>
        <div class="text1">
          TEXT
        </div>
      </div>
    </body>
    </html>
    Ответ написан