+ 3
How to put words on images in CSS?
How do you put words on images in CSS? Also how do you change the size of a image using background-image?
5 Antworten
+ 7
#put words on images:
just create an element with no background,write the text in it and position it over the image.
#change image background size
div{
width:80px;
height:80px;
background-image:url(link);
background-size:100% 100% ;
}
+ 5
here an example of what ᠌᠌brains explained
https://code.sololearn.com/WLatD92XaUQg/?ref=app
+ 5
CSS
img{
Position: absolute;
}
H1{
Position: relative ;
Top:5%;
}
+ 1
Is it possible to write a text over the image thats at the bottom center and enhance the size of the word? And is it possible to align word at the bottom center on the image?