• #dev 2025-01-06
  • Prev
    Next
  • #indieweb
  • #dev
  • #wordpress
  • #meta
  • #stream
  • #microformats
  • #known
  • #events
#dev ≡
  • ←
  • →
2025-01-06 UTC
# 17:33
artlung
capjamesg[d] yes, setting a height attribute and a width unit has been standard since the first <IMG> tags. CSS then will infer the aspect ratio from that. I have also in some cases set an inline style attribute with an aspect ratio. So for that image: `<img alt="" src="/assets/indiewebwikipage.png" width="2358" height"1260">` or `<img alt="" src="/assets/indiewebwikipage.png" style="aspect-ratio: 2358 / 1260">`