Answers for "background size css responsive"

0

css responsive background

/* fill the entire container and crop the image if needed */
background-size: cover;
/* fit the image inside the container */
background-size: contain;
Posted by: Guest on July-06-2021
-2

Scaling Images and Videos css

.container {
  width: 50%;
  height: 200px;
  overflow: hidden;
}

.container img {
  max-width: 100%;
  height: auto;
  display: block;
}
Posted by: Guest on May-03-2020

Code answers related to "background size css responsive"

Browse Popular Code Answers by Language