Skip to main content
Inspiring
November 13, 2018
Question

hover div control issues

  • November 13, 2018
  • 2 replies
  • 437 views

i created a menu slide in using on hover..

ANDY LILIEN | DOP

i want the menu to slide in only hovering the dashed lines..

the problem is when you move your mouse away that div is smaller than the menu and the menu slides off..

if i make parent div and include the menu then you'll get the menu sliding in when you havent rolled over the dashes--

any thoughts?

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    November 13, 2018

    I just thought I'd mention that hover won't do anything on touch screen devices.  Also, the bottom right text is cut off on my display.

    Nancy O'Shea— Product User & Community Expert
    REELHEROAuthor
    Inspiring
    November 13, 2018

    thanks nancy - its a temp page - ill do a  mobile version once this is good

    REELHEROAuthor
    Inspiring
    November 13, 2018

    apologies - i meant when you scroll down over the menu items the menu slides off.. because the div controlling the hover is smaller

    Legend
    November 13, 2018

    have you tried just moving the div over a bit more to the left:

    #navdiv {

    position: absolute;

    top: 54px;

    left:-300px;

    z-index:999999;

    opacity: 0;

    transition: all .3s ease-in;

    }

    REELHEROAuthor
    Inspiring
    November 13, 2018

    thank you -

    i tried it it stills disappears on mouse out..

    i was able to get it to work using a parent div

    ANDY LILIEN | DOP

    but now it only slides back out when you move your mouse completely off the browser (or over the AL logo which is not in the container)

    how do i specify the container to be just that area and not the full body - i tried height and width