Secondary Menu Styling
-
Hi there! I’ve got three issues to resolve, two to do with the secondary menu (which is my only menu), and another with the sidebar. Here is my test site: https://quinn-test.stephaniebastek.com/
ON DESKTOP:
I’d like for the individual menu (li) items to be evenly spaced. Right now I’ve styled them using:#nav-second ul.sf-menu>li {
width: 25%;
padding-top: 2%;
}But I’d love if I could make the white space between each list item equal instead. (Right now, there’s more space between “ABOUT” and “STORIES” than “THE MIGHTY BLOG” and “GET IN TOUCH”). Is there an easy fix for this that isn’t styling each menu item individually?
ON MOBILE/TABLET:
I cannot for the life of me figure out how to get the menu to mimic its appearance on the desktop view. I’d like the menu to be the width of the white body, and stay stuck to it no matter whether in mobile or tablet view, but cannot make it so! It seems to be working for the most part (though it’s not wide enough):
except for one pesky view where the menu shoots over to the right:
Here is my tangle of code, some of which I am sure is unnecessary…
/*MOBILE NAVIGATION*/
#mobile-nav-trigger, .nav-trigger {
width: 100%;
background: #55395f;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
-moz-border-top-left-radius: 15px;
-moz-border-top-right-radius: 15px;
-khtml-border-top-left-radius: 15px;
-khtml-border-top-right-radius: 15px;
-webkit-border-top-left-radius: 15px;
-webkit-border-top-right-radius: 15px;
}.kad-menu-name {
background: #55395f;
border-radius: 15px !important;
-moz-border-radius: 15px !important;
-khtml-border-radius: 15px !important;
-webkit-border-radius: 15px !important;
}.kad-nav-inner.mobileclass {
background: #55395f;
width: 100%;
}button.nav-trigger-case {
width: 90%;
position: relative;
top: 5%;
bottom: 5%;
padding: 5%;
left: 50%;
}SIDEBAR:
Is there a way to trigger the left border on the sidebar to disappear in tablet or mobile views, when it is shifted to the bottom of the page?
Thanks for any help you can offer!
- The topic ‘Secondary Menu Styling’ is closed to new replies.