Instead of colour how would you put a background image in? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Instead of colour how would you put a background image in?

background image with text over the top of it?

20th Dec 2016, 9:40 PM
LewisJames
LewisJames - avatar
1 Answer
+ 3
you should use CSS background's properties : background: url('image_file_name_path'); ... with generic 'background' instead of 'background-image' ( 'background-color' in case of color reference ). Look at the other background's properties relative to image ( like placement, repetition or sizing ) for fine tuning ^^
20th Dec 2016, 10:20 PM
visph
visph - avatar