- This topic is empty.
-
AuthorPosts
-
October 7, 2014 at 8:35 am #185668
smeeker
ParticipantHi there! I would LOVE it if you could help me make my 4th submenu drop to the left instead of the right. I’ve been working on this for hours and can’t seem to make it happen.
Here’s where I need help. On the fourth link on the menu, when hovered it will drop down more links to select from. When I hover over one of those, I want that secondary menu to move to the left instead of the right. Only on this one and not the others.
[MOD EDIT] Giant Codedump Removed
October 7, 2014 at 8:41 am #185669Paulie_D
MemberPlease don’t drop a shipload of code on us like that…it’s called ‘code dumping’.
Instead make an example in codepen.io as suggested in the Tips box on the right hand side of your screen.
October 7, 2014 at 8:54 am #185670smeeker
ParticipantSo sorry about that. Here is the URL via code pen: http://codepen.io/smeeker/pen/remgx
October 7, 2014 at 9:10 am #185673Paulie_D
MemberYou want something like this (at the moment)
#main_nav ul ul ul.sub_drop4 { left: -130%; top: 0; }
You need to tidy up some of the widths and margins and, eventually, that left figure can be brought down to
-100%
October 7, 2014 at 9:39 am #185675smeeker
ParticipantThanks for your help! :)
I went ahead and applied it to the remaining secondary menus under menu_4. The issue now is the slow drag of the green that follows it. Is that what you mean by cleaning up the widths and margins?
Sorry, here is the link: http://codepen.io/smeeker/pen/remgx
October 7, 2014 at 9:53 am #185676Paulie_D
MemberThe issue now is the slow drag of the green that follows it. Is that what you mean by cleaning up the widths and margins?
Yep.
October 7, 2014 at 11:28 am #185683smeeker
ParticipantI resolved it!
I removed this:
#main_nav ul li.menu_4 ul.drop_4 li ul.sub_drop4:hover {
top:0;
right:100%;
display:block;
}And replaced it with this:
#main_nav ul ul ul.sub_drop4 {
left:-100%;
top:0;
margin:0;
padding:0;
display:block;
right:100%;
}And I added the additional sub_drop4 class to each of the
<
ul> ‘s in the HTML code under menu_4
Thank you for the push in the right direction Paulie_D!
October 7, 2014 at 11:40 am #185686smeeker
ParticipantI tried to find this but where do I update my Profile pic? I didn’t see it where I “edit” my profile. I didn’t see where I could message you this question directly otherwise I wouldn’t have put it in this reply.
Love this site! I’m looking forward to spending more time on it. :)
October 7, 2014 at 11:55 am #185688chrisburton
ParticipantOctober 7, 2014 at 12:06 pm #185692smeeker
ParticipantThanks! :)
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.