kwerling Posted October 9, 2021 Share Posted October 9, 2021 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
Solution tuanphan Posted October 11, 2021 Solution Share Posted October 11, 2021 Try new code @media screen and (min-width:769px) { #navigator header#topBar ul#nav { display: block; float: right; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment