How to display white text on an image | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

How to display white text on an image

please help me

20th Apr 2017, 5:29 PM
minakshi singh
minakshi singh - avatar
6 Answers
20th Apr 2017, 5:54 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 9
use css, select the element with the text and apply the rule: element{color: white}
20th Apr 2017, 5:37 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 7
Solutions- 1) - Use image as a background-image for a div. - The text inside div will be on top of image. 2) - Use img tag - create another text element. Position it absolute and adjust over image using left, right, top, bottom.
20th Apr 2017, 5:44 PM
Ashwani Kumar
Ashwani Kumar - avatar
+ 6
thank you @Ashwani 😃,@Ulisses😃
20th Apr 2017, 6:00 PM
minakshi singh
minakshi singh - avatar
+ 4
@akshay it's not normal text it is text on image @ulisses and @ashwani have given the right answer
26th Apr 2017, 10:52 AM
minakshi singh
minakshi singh - avatar
+ 1
ok...
26th Apr 2017, 10:57 AM
kamble akshay ananda
kamble akshay ananda - avatar