@media navigation wrapping

Support Area Forums Foundation @media navigation wrapping

Viewing 6 posts - 1 through 6 (of 6 total)
URL to the page in question: http://nclionscampdogwood.org/
  • Author
    Posts
  • #28099
    Mark Vogler
    Participant

    Bill, I’d like to have the navigation move into the smartphone view sooner. The number of items I have in the nav area wrap into a second line in tablet view.

    Can you provide me with the the css changes?

    #28124
    Bill Robbins
    Moderator

    Good Afternoon Mark,

    Excellent question there. You can change the breakpoint. Here’s how:

    1. Go to your theme options page and choose the Style tab.
    2. Scroll down to the Custom CSS box and add this:
      
      @media only screen and (max-width: 1024px) {
      	
      	#mobile-menu ul,
      	#nav-left ul.menu {
      		display: none;
      	}
      	
      	#mobile-menu { 
      		display: block;
      	}
      	
      	select.tinynav {
      		border: none;
      		float: left;
      		border-radius: 0;
      		-webkit-appearance: none;
      		-webkit-background-clip: padding-box;
      		padding: 10px 20px;
      		margin-top: 0;
      		margin-bottom: 0;
      		margin-left: 0;
      	}
      
      }
      
    3. Update your settings.

    That will set the mobile menu to pick up when the browser window is 1024 pixels wide or smaller. You can change the 1024px in the snippet above to a different size if you’d like to.

    If you have any trouble, let me know.

    Thanks,
    Bill

    #28126
    Mark Vogler
    Participant

    Thanks Bill

    #28128
    Bill Robbins
    Moderator

    Anytime. Sorry for the delay…I’ve been on a kindergarten field trip today 🙂

    #28129
    Mark Vogler
    Participant

    You look older than that, hope you had fun!

    #28131
    Bill Robbins
    Moderator

    Thanks. Hanging out with my last kindergartner at the zoo on a sunny spring day is pretty special.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘@media navigation wrapping’ is closed to new replies.