How to set aspect ratio to an element?

Hi,

Is there a way to maintain an element’s aspect ratio without knowing its width in advance?

For example, I have a movie element with a width of “inf” and I want its height to automatically adjust based on its aspect ratio. Since I want the movie to adapt to the screen width on any mobile device, I can’t manually set the height.

thx

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