I attempted to create a flex container for my jpg file in HTML but ran into an issue. Even after adding image dimensions in CSS, the image remained the same size with no changes at all.
</head>
<div class="flex-container">
<div class="row">
<img src="images/1706810157558.jpg">
"</div>
<div></div>
</div>
I made several attempts by using the following code:
.img {
max-width: 100%;
max-height: 100%;
object-fit: cover;
}
.flex-container {
width: 300px;
height: 300px;
object-fit: cover;
}
.container {
display: flex;
flex-direction: row;
}
Currently working on an about page for my design portfolio website and trying to make the face smaller. However, the result still appears unchanged like in this [this]