Answer the question
In order to leave comments, you need to log in
How to make the height of the parent block depending on the child?
Good afternoon.
There is such a menu
codepen.io/npofopr/pen/QjdzKP
Now there is this:
$('.cd-secondary-nav', this).each(function(){
var height = $(this).height();
$('.sl_catalog').css('height', height+250);
});
Answer the question
In order to leave comments, you need to log in
And with height, everything is fine. In your example, a horizontal scroll.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question