[SOLVED] How can I adjust the width of the background image? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

[SOLVED] How can I adjust the width of the background image?

https://code.sololearn.com/W8rFY2ye7jEU/?ref=app

5th Nov 2017, 6:09 AM
B.D
B.D - avatar
2 Answers
+ 12
/*edited* use background-size property*/ background-size: 20px; in body css /*for height and width specify two values*/ background-size: 100% 100px;/* 100% of width 30rem of height https://code.sololearn.com/WILAjT4Bf93x/?ref=app */
5th Nov 2017, 6:22 AM
Lord Krishna
Lord Krishna - avatar
0
Thanks
5th Nov 2017, 6:27 AM
B.D
B.D - avatar