S
S
Sergey2018-08-29 10:42:06
css
Sergey, 2018-08-29 10:42:06

How to correctly position the text relative to the image?

I'm flipping an old project and it has the following image:
5b864aa2e156e208027391.jpeg
What's the best way to position the text so that each heading is relative to the elements of the image? The image is in vector graphics format. I used to do it using js (dynamically adjusted the height of blocks with text), but I don’t like this option. I also considered the option to put the text in svg, but there are difficulties with multi-line display, and foreignObject has too low browser support. Any suggestions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dima, 2018-08-29
Dolgoter @SpiderPigAndCat

Do I understand correctly that the red figures are on the same level as the title? if so then :after for headings and that's it

D
Denis Vasiliev, 2018-08-29
@corvus007

It can add a pseudo-element to the headers, set this icon with a tail for it and position it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question