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
@lelabo-m that is not what I want, because it means the container has a fixed height (the h-72) tailwind class on the div. What I want is set the width on the image and then keep the aspect ratio of the image. So the height is automatically deduced from that. The issue is this: if the height is not explicitly set to h-72 on the container div it will collapse to zero height and the image wont be visible at all. I used a similar pattern for the website I built, because I couldn't waste any more time on this: https://monerochan.news/article/3#heading I wanted the images to all be the width of the article and keep their aspect ratio. But it was not possible.
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
-
https://twitter.com/spirobel/status/1560106461144920067
please check out this comment to understand what my problem is. I had trouble doing this with next image and I am curious if I could achieve my goal with remix:
https://github.com/vercel/next.js/discussions/18739#discussioncomment-3436043
will I have more luck with remix when it comes to this? Is this kind of behavior possible with this library?
Regards,
Spirobel
Beta Was this translation helpful? Give feedback.
All reactions