- This topic is empty.
-
AuthorPosts
-
March 3, 2014 at 12:21 am #164532
wolfgang1983
ParticipantGot issue with my off canvas responsive. When it reaches my breakpoints of 959px my menu header will not show its background?
And also my toggle not working also?
March 3, 2014 at 4:45 am #164542Paulie_D
MemberThe toggle isn’t working, I suspect, because you do not have an
.active
class defined for#menu
in your CSS.Also, you should be
Preventing default
(I think) since a link is being clicked..especially as it doesn’t actually go anywhere.I think there is an argument for that not to be an ‘anchor’ at all, a
span
might be better.March 3, 2014 at 7:29 am #164550wolfgang1983
ParticipantI add the menu active with transitions in the media query but still nothing very strange clicking works though but not showing menu and should be coming from left but coming from right?
March 3, 2014 at 8:07 am #164552Paulie_D
MemberI think you are confused about what it is the
.active
classes are supposed be to doing.For instance, why are you adding an
.active
class to the.container
? All it does is move the container and I can’t see any reason for that.On adding the ‘active’ class to the
#menu
shouldn’t it display the full menu…all you seem to be doing is using translate when, I think you should be changing the position values.I would forget about the JS/JQ for now and concentrate on getting the design right at various widths. How the changes are applied is secondary.
March 3, 2014 at 8:21 am #164553wolfgang1983
ParticipantI worked it out now you can look at it took me a while to make my own but did it.
March 3, 2014 at 8:31 am #164555wolfgang1983
ParticipantNow just have to work it out how to make it come from the left just shows up blank when I change it to left in mobile view
March 3, 2014 at 8:57 am #164557Paulie_D
MemberA quick start..http://codepen.io/Paulie-D/pen/jlICc
March 3, 2014 at 9:18 am #164558wolfgang1983
ParticipantThanks @Paulie_D Will have to practice some more I think. Been trying to do what you told me last time about position etc. Will also convert it into scss which I am learning. Just set up ruby and compass for foundation 5.
March 3, 2014 at 10:03 am #164560Paulie_D
MemberYou might want to reconsider the SO question in light of our discussions.
March 4, 2014 at 12:23 am #164619Paulie_D
MemberStack Overflow
March 4, 2014 at 2:36 am #164623Paulie_D
MemberAh…OK.
No hassle just a friendly note. :)
March 5, 2014 at 2:43 am #164742Paulie_D
Member@riwakard
This might interest you: http://webdesign.tutsplus.com/articles/build-a-top-bar-off-canvas-navigation-with-foundation-5–webdesign-17767
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.