Preflight css for img overriding height prop for Image in Nextjs 13
#9748
Unanswered
cryptoMavrik
asked this question in
Help
Replies: 1 comment
-
|
Might be a little late now but one way you can do it is to use h-your_number or max-h-[your_numberpx] to override the base height setting. Here's exactly how I used it when I found out that my height prop of 300 was being ignored: For more options and further explanation see the docs: https://tailwindcss.com/docs/max-height |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
In experimenting with Nextjs 13, I've noticed that the
heightprop for images when using theImagecomponent from/next/imageis being overwritten by the preflight css.Any ideas for a solution that would accommodate for allowing the
heightprop to be used inImagewithout disturbing other use cases where the current settings are applicable?Beta Was this translation helpful? Give feedback.
All reactions