Home > AI > Language > CSS >

background-size

background-size: cover // let the background image to cover whole div (with the smallest side)

background-size: contain // let the backgorund image fit the div (with the largest side)

Leave a Reply