Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Div, background photo in diva, text in diva. If, as in the screenshot, it is enough to set the background color, the picture is not needed.
div.wrapper
image
text
.wrapper {
position: relative;
}
.text {
position: absolute;
left: 50%;
top: 50%
transform: translate(-50%, -50%);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question