+ 1
how can we change the text postion in the background image.
3 Respostas
+ 5
background position : value;
+ 3
Assuming you have a <div> block with an image set as its background. Now you let's have a <h1> in it. Create following css rule
.text {
margin: 0 auto;
padding:10px 20px;
z-index:1
}
Apply the rule on <h1 style = "text">... </h1>
0
I tried but nothing happened
Can u provide examples with codes