S
S
sunnyrio2019-01-08 13:58:30
WordPress
sunnyrio, 2019-01-08 13:58:30

How to control the height of a container in relation to its length?

There is a container with an image in the background, the container has a width of 100%, you need the height to change proportionally to the length when the browser width changes. How to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lakegull, 2016-04-07
@lakegull

I can recommend a paid plugin that I use myself. Although it is paid, it will 100% solve your problem. Filter Custom Fields & Taxonomies , plugin with AJAX filtering for any meta fields. So, if you weren’t pressed with money at all, then the $21 spent on the plugin will pay off.
Yes, and you can add as many groups as you like in the hierarchy. For example, they chose "Devil" in the second group and group 4 appeared. They chose "Angel" in the third group and group 5 appeared.

T
TCloud, 2019-01-08
@OTCloud

JavaScript: function window.resize( function () ...);
CSS: .container { height: 100vh; }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question