Skip to content

Commit 642aa66

Browse files
committed
added img aspect-ratio
1 parent 9a63fc7 commit 642aa66

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Wireframe/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ body {
3434
header {
3535
text-align: center;
3636
padding: var(--space);
37-
}
37+
}
3838
a {
3939
padding: var(--space);
4040
border: var(--line);
4141
max-width: fit-content;
4242
display: inline-block;
4343
margin-top: auto;
4444
margin-bottom: var(--space);
45-
4645
}
4746
img,
4847
svg {
4948
width: 100%;
5049
object-fit: cover;
50+
aspect-ratio: 16 / 9;
5151
}
5252
/* ====== Site Layout ======
5353
Setting the overall rules for page regions
@@ -108,5 +108,5 @@ article {
108108
article h2,
109109
article p,
110110
article a {
111-
margin: var(--space);
112-
}
111+
margin: var(--space);
112+
}

0 commit comments

Comments
 (0)