Skip to content

Commit a8448e8

Browse files
committed
Upload file: sort-package-json-keithamus.html
1 parent b52e9a7 commit a8448e8

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

projects/sort-package-json-keithamus.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,18 @@
6767
margin-left: 20px;
6868
}
6969

70-
/* Article */
71-
.site-main article img{
72-
width: 100%;
73-
height: auto;
74-
}
70+
71+
/* Apply responsiveness to all images except those inside anchor tags */
72+
.site-main article img:not(a img) {
73+
width: 100%; /* Make them responsive */
74+
height: auto; /* Maintain aspect ratio */
75+
}
76+
77+
/* Ensure that images inside anchor tags keep their natural size */
78+
.site-main article a img {
79+
width: auto; /* Retain original size */
80+
height: auto; /* Maintain aspect ratio */
81+
}
7582

7683
/* Heading styles */
7784
#changelogList h1 {

0 commit comments

Comments
 (0)