+ 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?

22nd Jul 2018, 10:34 PM
Eddy
Eddy - avatar
6 Respuestas
+ 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% ; }
22nd Jul 2018, 10:50 PM
᠌᠌Code X
᠌᠌Code X - avatar
22nd Jul 2018, 11:04 PM
Roel
Roel - avatar
+ 5
CSS img{ Position: absolute; } H1{ Position: relative ; Top:5%; }
2nd Sep 2019, 2:08 AM
Suraj Web
Suraj Web - avatar
+ 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?
24th Jul 2018, 2:48 AM
Eddy
Eddy - avatar
6th Aug 2018, 9:54 PM
Manny Pereira
Manny Pereira - avatar