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 can add width + height to my to resolve the lighthouse error.
but im using picture element with sources that have different aspect ratios for desktop versus mobile
for example
<picture>
<source desktop media...some image with aspect ration 500:200 />
<source mobile media...some image with aspect ration 300:600 />
<img width="???" height="???" />
</picture>
what would width + height for image be, if the aspect ration needs to be different ?
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
-
Anyone know how to handle responsive ?
i can add width + height to my to resolve the lighthouse error.
but im using picture element with sources that have different aspect ratios for desktop versus mobile
for example
what would width + height for image be, if the aspect ration needs to be different ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions