A
A
aleksandrkotov2022-02-19 19:53:38
css
aleksandrkotov, 2022-02-19 19:53:38

How else can you do styling given the remark?

There are such elements:
6210f4d71d1ff489562349.png
And I placed them horizontally, (as needed):
6210f5241a9b7788637136.png

Like this:
https://jsfiddle.net/petroyarmolenko/udrnq1to/8/

Maybe it will be more convenient for someone to write more code right here:

HTML
<div class="region-header">
  <div class="region--first">
    <div class="block1">
      <div class="menu-link">
        <a href>Menu</a>
      </div>
      <div class="menu-icon">
        <div>---</div>
      </div>
    </div>
    <div class="block2">
      <div class="search-box-link">
        <a href>Search</a>
      </div>
      <div class="search-icon">
        <div>+++</div>
      </div>
    </div>
  </div>
</div>

css
.region-header {
  .region--first {
    display: flex;
    font-size: rem(15);
    font-family: $font-family-work-sans;
    align-items: center;
    .block1 {
      display: flex;
      .menu-link {
        /* some code */
      }
      .menu-icon {
        /* some code */
      }
    }
    .block2 {
      display: flex;
      .search-box-link {
        /* some code */
      }
      .search-icon {
        /* some code */
      }
    }
  }
}


But on code review I got this remark:

I don't quite understand why you use only display: flex; without any other flex settings. Maybe there is some other way to do it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question