A
A
Alekosh Akhosh2021-09-02 02:00:03
Layout
Alekosh Akhosh, 2021-09-02 02:00:03

How to set the size of the picture?

Goodnight!

how to limit the image to its size? the picture has 48x48 pixels, but it completely captures its block.
613004cb3ee81839982966.png

.items {
display: flex;
flex-wrap: wrap;
}

.item {
display: flex;
width: 33.3333%;
margin-bottom: 33px;
}

.item img {
margin-right: 16px;
max-width: 100%;
}


<div class="items">
  <div class="item">
     <img src="/img/item.png" alt="картинка">
       <div class="item-text">
        <h4 class="title">Бетон</h4>
        <p class="description">Поставки бетона точно планируются, а его состояние контролируется, что обеспечивает максимально возможное время для установки.</p>
    </div>
  </div>
</div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Kulakov, 2021-09-02
@Akhosh

.item img { width: 48px; height: 48px; }
Or I don't understand something)

F
Froggyweb, 2021-09-02
@Froggyweb

.item img {align-self: flex-start;}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question