Get ratio of image with NuxtImage for explicit width and height (cls) #1009
Unanswered
fabianwohlfart
asked this question in
Q&A
Replies: 1 comment
-
I don't have an answer to your question, but maybe an alternative: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When working with NuxtImage I work with images where I do not know the height, because they come from a editor / cms in an article.
How do I know the aspect ratio for an image so i can any evade any cumulative layout shift?
Nuxt-Img: Width/Height
Lighthouse: "Image Elements do not have explicit width and height"
Beta Was this translation helpful? Give feedback.
All reactions