Answers for "change size of picture css"

CSS
4

reduce image size css

.container {
    width: 200px;
    height: 120px;
}

/* Resize images */
.container img {
    width: 100%;
    height: auto;
}
Posted by: Guest on June-23-2021
1

how to resize img in css

.whatever {
  width: 500px;
  height: 400px;
  background-image: url('myurl.jpg');
  background-size: cover;
}
Posted by: Guest on January-16-2022

Browse Popular Code Answers by Language