A
A
Anna Kolchina2018-05-06 14:29:16
css
Anna Kolchina, 2018-05-06 14:29:16

How to make the menu full screen height?

Actually the question is about what to position it, what properties to set for the parent and the menu itself?
Now the menu is located in the header block, which has a fixed height, so there can be no question of any height in the entire width of the page. There is an option to make the element a child of the body, but I don’t know how correct this decision will be.
5aeee7038fce3428507096.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Tsymbal, 2018-05-07
@AlexanderTsymbal

give the following css for the menu block:

position: fixed;
z-index: 999;
width: 100%;
height: 100%;

see what happens. Perhaps you can add more yourself.
I just offered as a starting point. The main thing is position: fixed; .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question