S
S
SimonTheSinger2020-11-25 15:50:21
css
SimonTheSinger, 2020-11-25 15:50:21

How to disable 'hamburger' menu icon from wrapping to next line when image is scaled down in bootstrap?

Good day!

When the screen resolution is reduced, the icon moves to the next level, but I would like it to remain in one line and compress the logo image. The image is compressed - everything is ok.

5fbe52d116f48763830382.jpeg
5fbe52d904f64171649062.jpeg
5fbe52dfdb31b299793573.jpeg

Image options in CSS:

.LogoImage {
display: inline-block;
max-width: 100%
max-height: auto;
}

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nikoly57, 2020-12-01
@nikoly57

Hey!
You can make the following structure:
HTML

<div class="area">
    <div class="area-img">
        <img class="LogoImage" src="/img.png"> <!-- твой логотип -->
    </div>
    <div class="area-menu">
        <button></button> <!-- твоя кнопка меню -->
    </div>
</div>

css
.area {
 display: flex;
  flex-wrap: nowrap;
}

 .area-img,
.area-menu {
 display: flex;
}

 .LogoImage {
 width: 100%;
  height: auto;
 }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question