D
D
Dymok2018-08-16 20:37:17
css
Dymok, 2018-08-16 20:37:17

How to make a background-image with content inside?

There is this block in the layout:

spoiler
5b75b5cbd2b2f097654759.jpeg

It must contain some content.
The question is, what is the best way to do this? Just set the background to the block and adjust the padding or is there a better way? And what about adaptability, if the content takes up more height with a smaller screen width? I can't think of anything other than replacing the smaller width with a simple background-color instead of background-image.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DimaDolgoter, 2018-08-16
@UnluckySerivelha

make the content on a green background, make a brown border on the border, and the rest as a background for after and before

X
xmoonlight, 2018-08-16
@xmoonlight

jquery-textfill.github.io/example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question