why this background shorthand does not work ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why this background shorthand does not work ??

div{ height:350px; width:350px; /*background:url("google.png"),url("IMG.jpg"); background-position:right bottom,left top; background-size:50px 50px,350px 350px; background-repeat:no-repeat;*/ //default value of background-repeat is repeat //i.e if no value is given then it is repeat. background: url("google.png") right bottom no-repeat, url("IMG.jpg") left top no-repeat; background:size:50px 50px,350px 350px; } /*the comment above includes a long approach to the same thing which works. but background shorthand below the comment doesnot work.*/

30th Dec 2021, 5:17 PM
kushal
1 Answer
+ 2
U can change ur tag from javascript to css to be more relevant Any background shorthand is working for me https://code.sololearn.com/Ww87WjEm3NQM/?ref=app Maybe U don't how to upload image from ur device to sololearn u can try these tutorials https://code.sololearn.com/WW6t4B73kJVz/?ref=app https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app https://code.sololearn.com/WT3661NHpV3B/?ref=app https://code.sololearn.com/Wa25A17a19a1/?ref=app
30th Dec 2021, 6:14 PM
Shino
Shino - avatar