New course! Every coder should learn Generative AI!
Try a free lesson0
how background size can be set to fit style?
2 Answers
+ 2
CSS3 introduced background-size.
Example:
div {
background-size: 200px 200px;
}
+ 2
div {
background-size:cover;
}
this will make it cover the container