element.style {
width: 100%;
height: 100%;
background: url('https://s3-ap-southeast-1.amazonaws.com/nearfox-other-images/imagebeautiful_hair_model_salon_124591669_large__20160501120024380271.jpg') center;
background-size: 100% auto;
}
If you want to adjust the background size, you can do so by changing the following code:
background-size: cover
Using "cover" will automatically crop the image, potentially distorting the ratio. On the other hand, setting it to "100% auto" will maintain the width while cropping the top and bottom if necessary. Feel free to experiment and choose the option that best suits your design preferences!