July 12, 201511 yr Hi i have this menu code https://jsfiddle.net/sysgn9pe/ i want to make it like when i click the button it open , not when you move mouse on it how can i do that . thanks
July 12, 201511 yr Author I've added a little bit of jQuery for you. Does it make sense? https://jsfiddle.net/sysgn9pe/2/ Side note: When the user hovers over the burger menu icon, you probably want cursor:pointer in your CSS too. thats good thanks but what about the close button . oh thanks its awesome but i want that close button too Edited July 12, 201511 yr by Nikan
July 13, 201511 yr Author If you click it again then it closes. Unless I've misunderstood what you're asking? if you see my code you must hover the close buttton to close . i want to make it " x" and close button only there
July 14, 201511 yr Try this https://jsfiddle.net/sysgn9pe/3/ Regardless, the fact that you're using such a fancy menu but don't know how it works suggests that you downloaded from a website or copied it from a tutorial. I'd strongly suggest studying the code and learning what's happening as well as our mine and NOCK's adjustments provide the changes you desire.
July 14, 201511 yr Author Try this https://jsfiddle.net/sysgn9pe/3/ Regardless, the fact that you're using such a fancy menu but don't know how it works suggests that you downloaded from a website or copied it from a tutorial. I'd strongly suggest studying the code and learning what's happening as well as our mine and NOCK's adjustments provide the changes you desire. thanks ♥ i'm actually a newbie im starting
July 14, 201511 yr Learn to walk before you can run Spend time learning fundamentals instead of just copying tutorials (The one in the fiddle is pretty poorly written CSS despite the effect looking quite cool) you will end up picking up bad habits and not fully understanding why things are happening. Treehouse and Codeschool are both good places to start properly learning. Edited July 14, 201511 yr by rbrtsmith
Create an account or sign in to comment