Why, when I put the height of the unit in % , it disappears (becomes thin line)?

Hello dear team Webflow!

Why, when I put the height of the unit in % , it disappears (becomes thin line)?

Other developers do height units in % and it works for them . For example: https://preview.webflow.com/preview/thedesigner?preview=e1c006ef0e3f7712f92d8fdf847d42ea

It contains the image height in%. When I do the same, I have them disappear .

The only thing we ask is that you do a quick search for your question just in case someone has already created a thread on it. If your question is not design or code related, give us a shout at support@webflow.com.

[/quote]

Height percentages don’t work like width percentages as far as I can tell. Width bases a percentage on the viewport window. But height bases it on it’s content. CSS – why doesn’t percentage height work? - Stack Overflow

Additionally, if you have a small enough % value, you could end up with an element that is less than 1px tall, which would make it disappear.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.