Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Lin-Yuying authored Jan 16, 2025
1 parent c80b18c commit 16c088d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,19 @@
left: 50%;
transform: translate(-50%, -30%);
}

.mydiv {
width: 150px;
height: 150px;
aspect-ratio: 1 / 1; /* Enforces a 1:1 ratio */
border-radius: 50%;
overflow: hidden;
margin-right: 0px; /* Space between image and text */
margin-right: 0px;
}

.mydiv img {
.mydiv img {
width: 100%;
height: auto;
height: 100%;
object-fit: cover;
}

h3 {
Expand Down

0 comments on commit 16c088d

Please sign in to comment.