Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS mobile menu not pushing art work to the right when opening Reply To: mobile menu not pushing art work to the right when opening

#234746
drotar
Participant

SOLVED. MHODGES44 is/was brilliant to come up with this solution. thank you hodges 44:

The reason that content does not get slid over when the menu comes out and the background does shift is because absolute & fixed positioned elements do not affect non-positioned (static) elements. That being said, you can add position: relative to your indexContent class and everything should move over as intended. Adding position:relative to an element without specifying a top/left/right/bottom offset will keep the element exactly where it would otherwise be with static positioning, however, it will play nicely with other positioned elements.