O
O
Oleg Mashko2015-02-21 21:58:24
css
Oleg Mashko, 2015-02-21 21:58:24

How can I set the height of the block to be the same as the parent's?

Dear experts! Here's the problem, the side menu rides relative to its parent div class="menu_rail", but it doesn't have a fixed height, since its height must be set by section class="middle", but it doesn't because section class=" itself middle" is given by section class="content" and its content. Attention, question! How to set the height of the div class="menu_rail" block, which will directly depend on the height of the neighboring block. The design is responsive.
section class="middle"
div class="menu_rail"
section class="content"
div Content /div
div Content /div
div Content /div
/ section
/section

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Ivanov, 2015-02-22
@Olbery

Maybe I did not understand, but in your question the inheritance of the parameter of the parent block was asked. This is set by the inherit value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question