I have a background image placed onto my website using css
body {
background-image: url(../Images/bg2.png);
background-repeat:no-repeat;
background-position: center bottom;
background-size: 100% 100px;
}
and I was wondering how I could make it so that if the website is smaller than the browser window then the image sticks to the bottom of the browser, however it it is larger, then it moves to the bottom of the website. Currently I have the code that makes it so with the bottom of the website, however if the site is small (not much information on the page), then the background has white underneath the image. If I have the one where it moves with the browser (with the fixed attachment) then it will follow the screen which is not what I would like because it would be an annoyance when the user is trying to read the text. How would I be able to accomplish this task?
Thank you for your time.