I have a background image in the following div, but the image gets cut off:
<div style='text-align:center;background-image: url(/media/img_1_bg.jpg);background-repeat:no-repeat;width:450px;height:900px;' id="mainpage" align="center">
Is there a way to show the background image without cutting it off?
To scale the background image to fit inside the div:
To scale the background image to cover the whole div:
Answered By – grc
Answer Checked By – Pedro (AngularFixing Volunteer)