Answers for "how to scale a bg image acc to size of div"

CSS
1

how to scale a bg image acc to size of div

/* One way */
background-size: cover;

/* Other option */
background-size: contain;
Posted by: Guest on July-31-2020

Code answers related to "how to scale a bg image acc to size of div"

Browse Popular Code Answers by Language