Jump to content

Flatiron: How to right align navigation menu on desktop, but use hamburger icon on mobile?

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.kwerling.com/

Hi all! Can someone help here?

For my portfolio site, I wanted my logo to show on the left side of the top nav, and the two menu items to display on the far right, for balance.  I found CSS on this forum to do exactly that, and it works great on the desktop and tablet versions of my site!

The issue is that on mobile, it now displays both the default "menu" link above my logo, as well as the two items separately, right aligned underneath the logo.  How do I adjust the CSS to display these two items, right aligned, only on desktop?  And leave mobile as the default single menu item above the logo?

** Ideally, I would also replace the word "menu" with a hamburger icon on mobile, but I am fine settling with just removing the duplicate nav items, if that's much easier.**

Here is the code I used that is working fine for desktop and tablet only: 

#navigator header#topBar ul#nav {
    display: block;
    float: right;
}
 

 

Link to comment
  • Replies 1
  • Views 513
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.