I
I
Ilya Famin2020-05-13 16:07:11
css
Ilya Famin, 2020-05-13 16:07:11

Does the height of the image depend on the height of the div block?

<aside>
                                    <div class="poster">
                                        <img class="poster5" src="../main/posters/poster6.jpg" alt="">
                                    </div>

                                    <div class="details">
                                        <a href="materials/9.html">
                                            <h3>Disk Drill — Восстановление удалённых данных</h3>
                                        </a>
                                        <div class="meta">
                                            <span class="pubdate">12.02.2020</span>
                                            <a class="categories" href="../categories/systems.html"><img src="../main/windows2.svg" alt="">Безопасность</a>
                                        </div>
                                        <p class="text">Программа, может легко восстановить случайно удалённые файлы с любых носителей.<br>
                                        <span style="color: #f1c40f;">Disk Drill</span> умеет работать с различными файловыми системами.!</p>
                                    </div>
                                </aside>


Suppose this is the code for this very picture and div block.
I have already been able to implement this using display: table-cell; , but in this case the height of the div block depends on the image.

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