0
Background image size
Hello. Just a quick question: What do I need to do, if I want to have only one background image (background-repeat:no-repeat) and need it to shrink (or expand) to fill the whole element with it? https://code.sololearn.com/WL6TVcJNjRZT/?ref=app
4 ответов
+ 6
background-size:100% 50%
where 100% is the background width and 50% background height
+ 2
Check this. There are several methods with which you can do that:
https://css-tricks.com/perfect-full-page-background-image/
+ 1
try using <div> tag because, both background image and background color cant be displayed in your current code
0
Thank you all very much.