Answers for "css resize image to width"

CSS
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
11

css change image width

/*Search Term: "CSS change image width"*/

img {
  width: /*Add width here*/;
}

/*Example*/
img {
  width: 200px;
}
Posted by: Guest on October-12-2020

Browse Popular Code Answers by Language