M
M
Moro Zota2018-06-11 00:27:24
css
Moro Zota, 2018-06-11 00:27:24

How to change position during adaptation?

HTML:

<header>
      <div class="container">
        <div class="main row justify-content-between align-items-center">
          <div class="col-md-auto logo">
            <img src="css/img/logo.png" alt="">
          </div>
          <menu class="col-md-auto">
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>5</li>
          </menu>
        </div>
      </div>
    </header>

SCSS:
.main {
  background-color: pink;
}

menu{
  display: flex;
  list-style: none;
  & li{
    margin-right: 50px;
  }
}

When the screen is reduced, the elements stand in new rows, as they should be. And how to make it so that, when changing, the blocks are pressed, for example, to the end of the axis?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Marty McFly, 2018-06-22
@alex_shevch

Set media queries to the correct position for the required screen size.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question