M
M
mister_pibody2015-09-26 02:15:30
css
mister_pibody, 2015-09-26 02:15:30

How can I make the content block move down when the dropdown menu is opened?

Hello! There is a menu


I made a vertical menu on jquery, under it there is another block of the same width (contacts, for example). When opening drop-down menu items, the lower menu items either hide behind this underlying element, or (as I did) completely cover it. Please tell me how best to do this, what positioning to use or is this problem solved using jquery?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
mister_pibodi, 2015-09-26
@mister_pibody

Vyacheslva, yes, it should turn out like this
Menu1
Menu2 *
Menu2.1
Menu 2.2
Menu 3
Menu 4
Contacts
Contacts 2
Whereas menu3 and menu4 either close Contacts and Contacts 2 (if you use z-index), or Contacts close menu3 and menu4 . What could be wrong in layout?

G
gl_evhen, 2015-09-26
@gl_evhen

position: static;

S
Stalker_darkway, 2015-09-26
@hronik87

And what about positioning? The problem is in layout. I understand that you need the bottom block "for example with contacts" to go down along with the drop-down menu?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question