Answers for "css decrease picture size"

CSS
2

reduce image size css

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

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

make an image smaller css

css:
.example-class {
    width: 400px;
    height: auto;
}

html:
<img class="example-class" src="example.jpg"/>
Posted by: Guest on March-20-2021

Browse Popular Code Answers by Language