I want to make text in an image. I have tried to follow the rules in w3school but it did not show satisfactory results
This is the final result shown:
The following code below is the LESS code that was created:
body {
background: url("../img/background-blur-5px.jpg") no-repeat top right fixed;
.container{
position: relative;
.img-bg {
margin: auto auto;
display: block;
width: 70%;
position: relative;
@media screen and (max-width: 768px){
display: none;
}
}
.login-box{
position: absolute;
text-align: center;
@media screen and (max-width: 768px){
background: white;
width: 90%;
height: 30em;
margin: 2em 0;
padding: 1em;
}
}
}
}
This is the HTML code that was created:
<div class="container">
<img src="{{url('image/sbopays')}}/login-box.png" class="img-bg">
<div class="login-box">
Hello World
</div>
</div>
And this is the desired expectation:
What am I forgot so I can add it later?