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 was messing with inline-blocks, but then i looked at it in firefox, this one line of css changes the height of a div based on if it has content or not?
<divclass="my-8 flex w-1/2 items-end gap-2 rounded-3xl border border-neutral-100 bg-blue-50 p-4"><divclass="inline-block"><!-- this changes the height in firefox?--><div#editableDivcontenteditable="true" class="inline-block min-h-6 min-w-5 bg-red-100"></div></div></div>
I've been looking for some explanation, but can't find anything specifically on this behaviour.
Is there a workaround? Is this just firefox? I need the inline-block for other elements there 😟
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was messing with inline-blocks, but then i looked at it in firefox, this one line of css changes the height of a div based on if it has content or not?
Here's the minimum code to reproduce..
playground
I've been looking for some explanation, but can't find anything specifically on this behaviour.
Is there a workaround? Is this just firefox? I need the inline-block for other elements there 😟
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions