G
G
goodcucumber2021-05-03 20:47:02
PHP
goodcucumber, 2021-05-03 20:47:02

How to tell an image what part of a div it occupies?

There are grid fields, you need to put an image in them that is larger than these fields, so that another 15-20% of this field remains free for the signature of this image. How to implement it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Shamanov, 2018-10-02
@ivinetecms_ru

for example, so but in general it's not about 7k, but about what error level is set, apparently in older versions you had something like error_reporting(E_ALL & ~E_NOTICE);

R
Roman, 2021-05-04
@goodcucumber

<figure>
  <img src="..">
  <figcaption>подпись</figcaption>
</figure>

figure {
  position: relative;
}
figcaption {
  background: white;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

E
Elena Fire, 2021-05-03
@BormotunJedy

In the grid field, put another div for the image, set it to the desired size, leave space for the caption.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question