Answer the question
In order to leave comments, you need to log in
How to insert text inside an image?
How to insert text inside an image?
<div class="content1-down2 col-sm-4">
<img src="img/vector-smart-object.png" alt="">
<h4>15</h4>
<p>Скидка<br>постоянным<br>клиентам</p>
</div>
Answer the question
In order to leave comments, you need to log in
It's not very clear what exactly you mean, but if suddenly I understood you, then here it is.
Or make this image a background image:
.content1-down2 {
background-image: url(../img/vector-smart-object.png);
}
.content1-down2 {
position: relative;
}
img{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
Offhand options:
- make the image the background of the div
- absolute positioning
.content1-down2{
position: relative;
}
.content1-down2 h4{
position: absolute;
top: 0;
left:0;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question