You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering what the recommended method is for having a full-width picture with a fixed height?
I've tried setting <nuxt-picture provider="imagekit" src="03.jpg" width="auto" height="500px" />, this just gives me the width according to the aspect ratio, how does one fill the entiry width, using object-fit to cover the image?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm wondering what the recommended method is for having a full-width picture with a fixed height?
I've tried setting
<nuxt-picture provider="imagekit" src="03.jpg" width="auto" height="500px" />
, this just gives me the width according to the aspect ratio, how does one fill the entiry width, using object-fit to cover the image?Beta Was this translation helpful? Give feedback.
All reactions