Replicating a transition effect

Think about it?

It makes no difference!

Padding top or paddding bottom on an empty element will look the same.

1 Like

Should height 0 be added to it?

height:0;

.ratio-keeper {
  position: relative;
  padding-top: 56.25%;
  height:0;
}

As it has no in flow content then it’s height should already be zero (in modern browsers).

1 Like

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