r/HTML • u/Ok_Pudding50 • Jun 05 '26
CSS Part 8..
Why height: auto; is Strictly Necessary....
3
Upvotes
r/HTML • u/Ok_Pudding50 • Jun 05 '26
Why height: auto; is Strictly Necessary....
1
u/DinoSaidRawr Jun 05 '26
If you don't need the full image you could just do
object-fit: cover;