Streaming live at 10am (PST)

Disappears when the value of the element height of 100 %


#1

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 .


#2

For a percentage height to work the elements parent has to have a height in either px or % set to it. Without a link to your project I won't be able to give you specifics. If you are going to use % for all of your set heights you will need to set the body to 100% height.

You can also use vh units to avoid setting parent heights.

Hope that helps :smile:


#3

In this example https://preview.webflow.com/preview/thedesigner?preview=e1c006ef0e3f7712f92d8fdf847d42ea , the height of the parent in%. In general, everything is in %

I tried to repeat the same thing exactly in exactly, I did not get.

Retry this website exactly like this guy has done. You will be surprised, but will not work.


#4

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